removed the excess logic, return directly instead of using if-statement.
@ -1760,10 +1760,7 @@ CAmount CWalletTx::GetChange() const
bool CWalletTx::InMempool() const
{
LOCK(mempool.cs);
if (mempool.exists(GetHash())) {
return mempool.exists(GetHash());
return true;
}
return false;
bool CWalletTx::IsTrusted() const