Skip to content

Commit 3491476

Browse files
authored
Wallet: reduce excess logic InMemPool()
removed the excess logic, return directly instead of using if-statement.
1 parent 8c28670 commit 3491476

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,10 +1760,7 @@ CAmount CWalletTx::GetChange() const
17601760
bool CWalletTx::InMempool() const
17611761
{
17621762
LOCK(mempool.cs);
1763-
if (mempool.exists(GetHash())) {
1764-
return true;
1765-
}
1766-
return false;
1763+
return mempool.exists(GetHash());
17671764
}
17681765

17691766
bool CWalletTx::IsTrusted() const

0 commit comments

Comments
 (0)