Bitcoin Core  0.19.99
P2P Digital Currency
feebumper.h
Go to the documentation of this file.
1 // Copyright (c) 2017-2019 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 
10 class CWallet;
11 class CWalletTx;
12 class uint256;
13 class CCoinControl;
14 enum class FeeEstimateMode;
15 
16 namespace feebumper {
17 
18 enum class Result
19 {
20  OK,
25  MISC_ERROR,
26 };
27 
29 bool TransactionCanBeBumped(const CWallet& wallet, const uint256& txid);
30 
33  const uint256& txid,
34  const CCoinControl& coin_control,
35  std::vector<std::string>& errors,
36  CAmount& old_fee,
37  CAmount& new_fee,
38  CMutableTransaction& mtx);
39 
43 bool SignTransaction(CWallet& wallet, CMutableTransaction& mtx);
44 
50  const uint256& txid,
51  CMutableTransaction&& mtx,
52  std::vector<std::string>& errors,
53  uint256& bumped_txid);
54 
55 } // namespace feebumper
56 
57 #endif // BITCOIN_WALLET_FEEBUMPER_H
bool SignTransaction(CWallet &wallet, CMutableTransaction &mtx)
Sign the new transaction,.
Definition: feebumper.cpp:242
Result CommitTransaction(CWallet &wallet, const uint256 &txid, CMutableTransaction &&mtx, std::vector< std::string > &errors, uint256 &bumped_txid)
Commit the bumpfee transaction.
Definition: feebumper.cpp:248
FeeEstimateMode
Definition: fees.h:49
Coin Control Features.
Definition: coincontrol.h:22
int64_t CAmount
Amount in satoshis (Can be negative)
Definition: amount.h:12
bool TransactionCanBeBumped(const CWallet &wallet, const uint256 &txid)
Return whether transaction can be bumped.
Definition: feebumper.cpp:141
A transaction with a bunch of additional info that only the owner cares about.
Definition: wallet.h:256
256-bit opaque blob.
Definition: uint256.h:120
Result CreateRateBumpTransaction(CWallet &wallet, const uint256 &txid, const CCoinControl &coin_control, std::vector< std::string > &errors, CAmount &old_fee, CAmount &new_fee, CMutableTransaction &mtx)
Create bumpfee transaction based on feerate estimates.
Definition: feebumper.cpp:153
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Definition: wallet.h:609
A mutable version of CTransaction.
Definition: transaction.h:366