Bitcoin Core  0.20.99
P2P Digital Currency
Namespaces | Functions
feebumper.cpp File Reference
#include <interfaces/chain.h>
#include <policy/fees.h>
#include <policy/policy.h>
#include <util/moneystr.h>
#include <util/rbf.h>
#include <util/system.h>
#include <util/translation.h>
#include <wallet/coincontrol.h>
#include <wallet/feebumper.h>
#include <wallet/fees.h>
#include <wallet/wallet.h>
Include dependency graph for feebumper.cpp:

Go to the source code of this file.

Namespaces

 feebumper
 

Functions

static feebumper::Result PreconditionChecks (const CWallet &wallet, const CWalletTx &wtx, std::vector< bilingual_str > &errors) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet)
 Check whether transaction has descendant in wallet or mempool, or has been mined, or conflicts with a mined transaction. More...
 
static feebumper::Result CheckFeeRate (const CWallet &wallet, const CWalletTx &wtx, const CFeeRate &newFeerate, const int64_t maxTxSize, std::vector< bilingual_str > &errors)
 Check if the user provided a valid feeRate. More...
 
static CFeeRate EstimateFeeRate (const CWallet &wallet, const CWalletTx &wtx, const CAmount old_fee, CCoinControl &coin_control)
 
bool feebumper::TransactionCanBeBumped (const CWallet &wallet, const uint256 &txid)
 Return whether transaction can be bumped. More...
 
Result feebumper::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. More...
 
bool feebumper::SignTransaction (CWallet &wallet, CMutableTransaction &mtx)
 Sign the new transaction,. More...
 
Result feebumper::CommitTransaction (CWallet &wallet, const uint256 &txid, CMutableTransaction &&mtx, std::vector< bilingual_str > &errors, uint256 &bumped_txid)
 Commit the bumpfee transaction. More...
 

Function Documentation

◆ CheckFeeRate()

static feebumper::Result CheckFeeRate ( const CWallet wallet,
const CWalletTx wtx,
const CFeeRate newFeerate,
const int64_t  maxTxSize,
std::vector< bilingual_str > &  errors 
)
static

Check if the user provided a valid feeRate.

Definition at line 61 of file feebumper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EstimateFeeRate()

static CFeeRate EstimateFeeRate ( const CWallet wallet,
const CWalletTx wtx,
const CAmount  old_fee,
CCoinControl coin_control 
)
static

Definition at line 114 of file feebumper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PreconditionChecks()

static feebumper::Result PreconditionChecks ( const CWallet wallet,
const CWalletTx wtx,
std::vector< bilingual_str > &  errors 
)
static

Check whether transaction has descendant in wallet or mempool, or has been mined, or conflicts with a mined transaction.

Return a feebumper::Result.

Definition at line 19 of file feebumper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: