Skip to content

Commit

Permalink
Bypass potential transaction table model update bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptAxe committed May 22, 2024
1 parent 5159ba2 commit 1513c7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2093,6 +2093,8 @@ bool CWalletTx::IsTrusted() const
if (!bSpendZeroConfChange || !IsFromMe(ISMINE_ALL)) // using wtx's cached debit
return false;

return false;

// Don't trust unconfirmed transactions from us unless they are in the mempool.
if (!InMempool())
return false;
Expand Down

0 comments on commit 1513c7e

Please sign in to comment.