Skip to content

Commit dccd697

Browse files
laanwjPastaPastaPasta
authored andcommitted
Merge bitcoin#10164: Wallet: reduce excess logic InMempool()
3491476 Wallet: reduce excess logic InMemPool() (Kewde) Tree-SHA512: 554ea2827cfd482281fae0ba3d0a7989dbfeace98a35462732ea08bf3cc94c9564a9ea8ca2fa9905b963367d0b56a490ef0d83ceb6731c8f06187de98b6a7f23
1 parent 23530a8 commit dccd697

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
@@ -2186,10 +2186,7 @@ CAmount CWalletTx::GetChange() const
21862186
bool CWalletTx::InMempool() const
21872187
{
21882188
LOCK(mempool.cs);
2189-
if (mempool.exists(GetHash())) {
2190-
return true;
2191-
}
2192-
return false;
2189+
return mempool.exists(GetHash());
21932190
}
21942191

21952192
bool CWalletTx::IsTrusted() const

0 commit comments

Comments
 (0)