MCPcopy Create free account
hub / github.com/ElementsProject/elements / TransactionCanBeBumped

Function TransactionCanBeBumped

src/wallet/feebumper.cpp:150–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148namespace feebumper {
149
150bool TransactionCanBeBumped(const CWallet& wallet, const uint256& txid)
151{
152 LOCK(wallet.cs_wallet);
153 const CWalletTx* wtx = wallet.GetWalletTx(txid);
154 if (wtx == nullptr) return false;
155
156 std::vector<bilingual_str> errors_dummy;
157 feebumper::Result res = PreconditionChecks(wallet, *wtx, errors_dummy);
158 return res == feebumper::Result::OK;
159}
160
161Result CreateRateBumpTransaction(CWallet& wallet, const uint256& txid, const CCoinControl& coin_control, std::vector<bilingual_str>& errors,
162 CAmount& old_fee, CAmount& new_fee, CMutableTransaction& mtx)

Callers 1

Calls 1

GetWalletTxMethod · 0.80

Tested by

no test coverage detected