Merge #10164: Wallet: reduce excess logic InMempool()

3491476 Wallet: reduce excess logic InMemPool() (Kewde)

Tree-SHA512: 554ea2827cfd482281fae0ba3d0a7989dbfeace98a35462732ea08bf3cc94c9564a9ea8ca2fa9905b963367d0b56a490ef0d83ceb6731c8f06187de98b6a7f23
This commit is contained in:
Wladimir J. van der Laan 2017-04-10 15:16:34 +02:00
commit e183ea2047
No known key found for this signature in database
GPG key ID: 74810B012346C9A6

View file

@ -1761,10 +1761,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