mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-12 16:17:53 +00:00
Cancel feebump is vErrors is not empty
This commit is contained in:
parent
44cabe6380
commit
0df22ed6fd
@ -232,7 +232,9 @@ CFeeBumper::CFeeBumper(const CWallet *pWallet, const uint256 txidIn, int newConf
|
|||||||
bool CFeeBumper::commit(CWallet *pWallet)
|
bool CFeeBumper::commit(CWallet *pWallet)
|
||||||
{
|
{
|
||||||
AssertLockHeld(pWallet->cs_wallet);
|
AssertLockHeld(pWallet->cs_wallet);
|
||||||
vErrors.clear();
|
if (!vErrors.empty() || currentResult != BumpFeeResult::OK) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (txid.IsNull() || !pWallet->mapWallet.count(txid)) {
|
if (txid.IsNull() || !pWallet->mapWallet.count(txid)) {
|
||||||
vErrors.push_back("Invalid or non-wallet transaction id");
|
vErrors.push_back("Invalid or non-wallet transaction id");
|
||||||
currentResult = BumpFeeResult::MISC_ERROR;
|
currentResult = BumpFeeResult::MISC_ERROR;
|
||||||
|
Loading…
Reference in New Issue
Block a user