5 #ifndef BITCOIN_WALLET_FEEBUMPER_H
6 #define BITCOIN_WALLET_FEEBUMPER_H
50 std::vector<bilingual_str>& errors,
55 const std::vector<CTxOut>& outputs);
69 std::vector<bilingual_str>& errors,
int64_t CAmount
Amount in satoshis (Can be negative)
virtual bool CheckECDSASignature(const std::vector< unsigned char > &scriptSig, const std::vector< unsigned char > &vchPubKey, const CScript &scriptCode, SigVersion sigversion) const
Serialized script, used inside transaction inputs and outputs.
const BaseSignatureChecker & m_checker
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
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)
SignatureWeights & m_weights
static const int WITNESS_SCALE_FACTOR
@ TAPROOT
Witness v1 with 32-byte program, not BIP16 P2SH-wrapped, key path spending; see BIP 341.
@ BASE
Bare scripts and BIP16 P2SH-wrapped redeemscripts.
@ TAPSCRIPT
Witness v1 with 32-byte program, not BIP16 P2SH-wrapped, script path spending, leaf version 0xc0; see...
@ WITNESS_V0
Witness v0 (P2WPKH and P2WSH); see BIP 141.
Result CommitTransaction(CWallet &wallet, const uint256 &txid, CMutableTransaction &&mtx, std::vector< bilingual_str > &errors, uint256 &bumped_txid)
Commit the bumpfee transaction.
bool SignTransaction(CWallet &wallet, CMutableTransaction &mtx)
Sign the new transaction,.
bool TransactionCanBeBumped(const CWallet &wallet, const uint256 &txid)
Return whether transaction can be bumped.
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, const std::vector< CTxOut > &outputs)
Create bumpfee transaction based on feerate estimates.
A mutable version of CTransaction.
int64_t GetWeightDiffToMax() const
void AddSigWeight(const size_t weight, const SigVersion sigversion)