Wallet: reduce excess logic InMemPool()

removed the excess logic, return directly instead of using if-statement.
This commit is contained in:
Kewde 2017-04-07 00:53:12 +00:00 committed by GitHub
parent 8c28670e92
commit 3491476b6f

View file

@ -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