5 #ifndef BITCOIN_WALLET_FEEBUMPER_H 6 #define BITCOIN_WALLET_FEEBUMPER_H 50 std::vector<bilingual_str>& errors,
68 std::vector<bilingual_str>& errors,
123 #endif // BITCOIN_WALLET_FEEBUMPER_H virtual bool CheckECDSASignature(const std::vector< unsigned char > &scriptSig, const std::vector< unsigned char > &vchPubKey, const CScript &scriptCode, SigVersion sigversion) const
const BaseSignatureChecker & m_checker
Witness v1 with 32-byte program, not BIP16 P2SH-wrapped, key path spending; see BIP 341...
static const int WITNESS_SCALE_FACTOR
SignatureWeights & m_weights
Bare scripts and BIP16 P2SH-wrapped redeemscripts.
Witness v1 with 32-byte program, not BIP16 P2SH-wrapped, script path spending, leaf version 0xc0; see...
bool TransactionCanBeBumped(const CWallet &wallet, const uint256 &txid)
Return whether transaction can be bumped.
Result CommitTransaction(CWallet &wallet, const uint256 &txid, CMutableTransaction &&mtx, std::vector< bilingual_str > &errors, uint256 &bumped_txid)
Commit the bumpfee transaction.
int64_t CAmount
Amount in satoshis (Can be negative)
bool CheckECDSASignature(const std::vector< unsigned char > &sig, const std::vector< unsigned char > &pubkey, const CScript &script, SigVersion sigversion) const override
SignatureWeightChecker(SignatureWeights &weights, const BaseSignatureChecker &checker)
int64_t GetWeightDiffToMax() const
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
bool SignTransaction(CWallet &wallet, CMutableTransaction &mtx)
Sign the new transaction,.
Serialized script, used inside transaction inputs and outputs.
A mutable version of CTransaction.
void AddSigWeight(const size_t weight, const SigVersion sigversion)
Result CreateRateBumpTransaction(CWallet &wallet, const uint256 &txid, const CCoinControl &coin_control, std::vector< bilingual_str > &errors, CAmount &old_fee, CAmount &new_fee, CMutableTransaction &mtx, bool require_mine)
Create bumpfee transaction based on feerate estimates.