Skip to content

Commit 0df22ed

Browse files
committed
Cancel feebump is vErrors is not empty
1 parent 44cabe6 commit 0df22ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/wallet/feebumper.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,9 @@ CFeeBumper::CFeeBumper(const CWallet *pWallet, const uint256 txidIn, int newConf
232232
bool CFeeBumper::commit(CWallet *pWallet)
233233
{
234234
AssertLockHeld(pWallet->cs_wallet);
235-
vErrors.clear();
235+
if (!vErrors.empty() || currentResult != BumpFeeResult::OK) {
236+
return false;
237+
}
236238
if (txid.IsNull() || !pWallet->mapWallet.count(txid)) {
237239
vErrors.push_back("Invalid or non-wallet transaction id");
238240
currentResult = BumpFeeResult::MISC_ERROR;

0 commit comments

Comments
 (0)