| 148 | namespace feebumper { |
| 149 | |
| 150 | bool 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 | |
| 161 | Result CreateRateBumpTransaction(CWallet& wallet, const uint256& txid, const CCoinControl& coin_control, std::vector<bilingual_str>& errors, |
| 162 | CAmount& old_fee, CAmount& new_fee, CMutableTransaction& mtx) |
no test coverage detected