Bitcoin
Namespaces | Functions
feebumper.cpp File Reference
#include <consensus/validation.h>
#include <interfaces/chain.h>
#include <wallet/coincontrol.h>
#include <wallet/feebumper.h>
#include <wallet/fees.h>
#include <wallet/wallet.h>
#include <policy/fees.h>
#include <policy/policy.h>
#include <util/moneystr.h>
#include <util/rbf.h>
#include <util/system.h>
#include <util/validation.h>

Namespaces

 feebumper
 

Functions

static feebumper::Result PreconditionChecks (interfaces::Chain::Lock &locked_chain, const CWallet *wallet, const CWalletTx &wtx, std::vector< std::string > &errors) EXCLUSIVE_LOCKS_REQUIRED(wallet -> cs_wallet)
 
bool feebumper::TransactionCanBeBumped (const CWallet *wallet, const uint256 &txid)
 Return whether transaction can be bumped. More...
 
Result feebumper::CreateTotalBumpTransaction (const CWallet *wallet, const uint256 &txid, const CCoinControl &coin_control, CAmount total_fee, std::vector< std::string > &errors, CAmount &old_fee, CAmount &new_fee, CMutableTransaction &mtx)
 Create bumpfee transaction based on total amount. More...
 
Result feebumper::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. More...
 
bool feebumper::SignTransaction (CWallet *wallet, CMutableTransaction &mtx)
 
Result feebumper::CommitTransaction (CWallet *wallet, const uint256 &txid, CMutableTransaction &&mtx, std::vector< std::string > &errors, uint256 &bumped_txid)
 

Function Documentation

◆ PreconditionChecks()

static feebumper::Result PreconditionChecks ( interfaces::Chain::Lock locked_chain,
const CWallet wallet,
const CWalletTx wtx,
std::vector< std::string > &  errors 
) -> cs_wallet)
static

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