Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
feebumper.cpp File Reference
#include <common/system.h>
#include <consensus/validation.h>
#include <interfaces/chain.h>
#include <policy/fees/block_policy_estimator.h>
#include <policy/policy.h>
#include <util/moneystr.h>
#include <util/rbf.h>
#include <util/translation.h>
#include <wallet/coincontrol.h>
#include <wallet/feebumper.h>
#include <wallet/fees.h>
#include <wallet/receive.h>
#include <wallet/spend.h>
#include <wallet/wallet.h>
Include dependency graph for feebumper.cpp:

Go to the source code of this file.

Namespaces

namespace  wallet
namespace  wallet::feebumper

Functions

static feebumper::Result wallet::PreconditionChecks (const CWallet &wallet, const CWalletTx &wtx, bool require_mine, std::vector< bilingual_str > &errors) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet)
static feebumper::Result wallet::CheckFeeRate (const CWallet &wallet, const CMutableTransaction &mtx, const CFeeRate &newFeerate, const int64_t maxTxSize, CAmount old_fee, std::vector< bilingual_str > &errors)
 Check if the user provided a valid feeRate.
static CFeeRate wallet::EstimateFeeRate (const CWallet &wallet, const CWalletTx &wtx, const CAmount old_fee, const CCoinControl &coin_control)
bool wallet::feebumper::TransactionCanBeBumped (const CWallet &wallet, const Txid &txid)
 Return whether transaction can be bumped.
Result wallet::feebumper::CreateRateBumpTransaction (CWallet &wallet, const Txid &txid, const CCoinControl &coin_control, std::vector< bilingual_str > &errors, CAmount &old_fee, CAmount &new_fee, CMutableTransaction &mtx, bool require_mine, const std::vector< CTxOut > &outputs, std::optional< uint32_t > original_change_index=std::nullopt)
 Create bumpfee transaction based on feerate estimates.
bool wallet::feebumper::SignTransaction (CWallet &wallet, CMutableTransaction &mtx)
Result wallet::feebumper::CommitTransaction (CWallet &wallet, const Txid &txid, CMutableTransaction &&mtx, std::vector< bilingual_str > &errors, Txid &bumped_txid)