mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Wallet: reduce excess logic InMemPool()
removed the excess logic, return directly instead of using if-statement.
This commit is contained in:
@@ -1760,10 +1760,7 @@ CAmount CWalletTx::GetChange() const
|
||||
bool CWalletTx::InMempool() const
|
||||
{
|
||||
LOCK(mempool.cs);
|
||||
if (mempool.exists(GetHash())) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return mempool.exists(GetHash());
|
||||
}
|
||||
|
||||
bool CWalletTx::IsTrusted() const
|
||||
|
||||
Reference in New Issue
Block a user