aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-04-10 15:16:34 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2017-04-10 15:27:34 +0200
commite183ea2047b3ccdbadbc7dfd5828aada9ed270a3 (patch)
treeb941b2d97fbe7eca5c61ec3e13ef4d425a6395a5
parente19586a8a95502ce0f9fb8319ca6456c2ce161b3 (diff)
parent3491476b6f486a85bef09f1a0bd4d39e1af9d0b1 (diff)
Merge #10164: Wallet: reduce excess logic InMempool()
3491476 Wallet: reduce excess logic InMemPool() (Kewde) Tree-SHA512: 554ea2827cfd482281fae0ba3d0a7989dbfeace98a35462732ea08bf3cc94c9564a9ea8ca2fa9905b963367d0b56a490ef0d83ceb6731c8f06187de98b6a7f23
-rw-r--r--src/wallet/wallet.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index d449f83a87..99fcb21f68 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -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