mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
Merge #10164: Wallet: reduce excess logic InMempool()
3491476
Wallet: reduce excess logic InMemPool() (Kewde)
Tree-SHA512: 554ea2827cfd482281fae0ba3d0a7989dbfeace98a35462732ea08bf3cc94c9564a9ea8ca2fa9905b963367d0b56a490ef0d83ceb6731c8f06187de98b6a7f23
This commit is contained in:
commit
e183ea2047
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue