Skip to content

Commit e183ea2

Browse files
committed
Merge #10164: Wallet: reduce excess logic InMempool()
3491476 Wallet: reduce excess logic InMemPool() (Kewde) Tree-SHA512: 554ea2827cfd482281fae0ba3d0a7989dbfeace98a35462732ea08bf3cc94c9564a9ea8ca2fa9905b963367d0b56a490ef0d83ceb6731c8f06187de98b6a7f23
2 parents e19586a + 3491476 commit e183ea2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,10 +1761,7 @@ CAmount CWalletTx::GetChange() const
17611761
bool CWalletTx::InMempool() const
17621762
{
17631763
LOCK(mempool.cs);
1764-
if (mempool.exists(GetHash())) {
1765-
return true;
1766-
}
1767-
return false;
1764+
return mempool.exists(GetHash());
17681765
}
17691766

17701767
bool CWalletTx::IsTrusted() const

0 commit comments

Comments
 (0)