Bitcoin Core 22.99.0
P2P Digital Currency
feebumper.h
Go to the documentation of this file.
1// Copyright (c) 2017-2020 The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#ifndef BITCOIN_WALLET_FEEBUMPER_H
6#define BITCOIN_WALLET_FEEBUMPER_H
7
9
10class CWallet;
11class CWalletTx;
12class uint256;
13class CCoinControl;
14enum class FeeEstimateMode;
15struct bilingual_str;
16
17namespace feebumper {
18
19enum class Result
20{
21 OK,
27};
28
30bool TransactionCanBeBumped(const CWallet& wallet, const uint256& txid);
31
34 const uint256& txid,
35 const CCoinControl& coin_control,
36 std::vector<bilingual_str>& errors,
37 CAmount& old_fee,
38 CAmount& new_fee,
40
45
51 const uint256& txid,
53 std::vector<bilingual_str>& errors,
54 uint256& bumped_txid);
55
56} // namespace feebumper
57
58#endif // BITCOIN_WALLET_FEEBUMPER_H
int64_t CAmount
Amount in satoshis (Can be negative)
Definition: amount.h:12
Coin Control Features.
Definition: coincontrol.h:29
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Definition: wallet.h:229
A transaction with a bunch of additional info that only the owner cares about.
Definition: transaction.h:47
256-bit opaque blob.
Definition: uint256.h:124
FeeEstimateMode
Definition: feerate.h:18
Result CommitTransaction(CWallet &wallet, const uint256 &txid, CMutableTransaction &&mtx, std::vector< bilingual_str > &errors, uint256 &bumped_txid)
Commit the bumpfee transaction.
Definition: feebumper.cpp:250
Result CreateRateBumpTransaction(CWallet &wallet, const uint256 &txid, const CCoinControl &coin_control, std::vector< bilingual_str > &errors, CAmount &old_fee, CAmount &new_fee, CMutableTransaction &mtx)
Create bumpfee transaction based on feerate estimates.
Definition: feebumper.cpp:156
bool TransactionCanBeBumped(const CWallet &wallet, const uint256 &txid)
Return whether transaction can be bumped.
Definition: feebumper.cpp:145
bool SignTransaction(CWallet &wallet, CMutableTransaction &mtx)
Sign the new transaction,.
Definition: feebumper.cpp:245
A mutable version of CTransaction.
Definition: transaction.h:345
Bilingual messages:
Definition: translation.h:16