![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
Classes | |
| class | SignatureWeightChecker |
| struct | SignatureWeights |
Enumerations | |
| enum class | Result { OK , INVALID_ADDRESS_OR_KEY , INVALID_REQUEST , INVALID_PARAMETER , WALLET_ERROR , MISC_ERROR } |
Functions | |
| bool | TransactionCanBeBumped (const CWallet &wallet, const Txid &txid) |
| Return whether transaction can be bumped. More... | |
| Result | 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. More... | |
| bool | SignTransaction (CWallet &wallet, CMutableTransaction &mtx) |
| Sign the new transaction,. More... | |
| Result | CommitTransaction (CWallet &wallet, const Txid &txid, CMutableTransaction &&mtx, std::vector< bilingual_str > &errors, Txid &bumped_txid) |
| Commit the bumpfee transaction. More... | |
| static void | CheckMaxWeightComputation (const std::string &script_str, const std::vector< std::string > &witness_str_stack, const std::string &prevout_script_str, int64_t expected_max_weight) |
| BOOST_AUTO_TEST_CASE (external_max_weight_test) | |
|
strong |
| Enumerator | |
|---|---|
| OK | |
| INVALID_ADDRESS_OR_KEY | |
| INVALID_REQUEST | |
| INVALID_PARAMETER | |
| WALLET_ERROR | |
| MISC_ERROR | |
Definition at line 23 of file feebumper.h.
| wallet::feebumper::BOOST_AUTO_TEST_CASE | ( | external_max_weight_test | ) |
|
static |
Definition at line 20 of file feebumper_tests.cpp.
| Result wallet::feebumper::CommitTransaction | ( | CWallet & | wallet, |
| const Txid & | txid, | ||
| CMutableTransaction && | mtx, | ||
| std::vector< bilingual_str > & | errors, | ||
| Txid & | bumped_txid | ||
| ) |
Commit the bumpfee transaction.
Definition at line 349 of file feebumper.cpp.
| 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.
| [in] | wallet | The wallet to use for this bumping |
| [in] | txid | The txid of the transaction to bump |
| [in] | coin_control | A CCoinControl object which provides feerates and other information used for coin selection |
| [out] | errors | Errors |
| [out] | old_fee | The fee the original transaction pays |
| [out] | new_fee | the fee that the bump transaction pays |
| [out] | mtx | The bump transaction itself |
| [in] | require_mine | Whether the original transaction must consist of inputs that can be spent by the wallet |
| [in] | outputs | Vector of new outputs to replace the bumped transaction's outputs |
| [in] | original_change_index | The position of the change output to deduct the fee from in the transaction being bumped |
Definition at line 158 of file feebumper.cpp.
| bool wallet::feebumper::SignTransaction | ( | CWallet & | wallet, |
| CMutableTransaction & | mtx | ||
| ) |
Sign the new transaction,.
Definition at line 329 of file feebumper.cpp.
Return whether transaction can be bumped.
Definition at line 147 of file feebumper.cpp.