aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2017-04-10 15:16:34 +0200
committerWladimir J. van der Laan <[email protected]>2017-04-10 15:27:34 +0200
commite183ea2047b3ccdbadbc7dfd5828aada9ed270a3 (patch)
treeb941b2d97fbe7eca5c61ec3e13ef4d425a6395a5 /src/wallet/wallet.cpp
parentMerge #10135: [p2p] Send the correct error code in reject messages (diff)
parentWallet: reduce excess logic InMemPool() (diff)
downloaddiscoin-e183ea2047b3ccdbadbc7dfd5828aada9ed270a3.tar.xz
discoin-e183ea2047b3ccdbadbc7dfd5828aada9ed270a3.zip
Merge #10164: Wallet: reduce excess logic InMempool()
3491476 Wallet: reduce excess logic InMemPool() (Kewde) Tree-SHA512: 554ea2827cfd482281fae0ba3d0a7989dbfeace98a35462732ea08bf3cc94c9564a9ea8ca2fa9905b963367d0b56a490ef0d83ceb6731c8f06187de98b6a7f23
Diffstat (limited to 'src/wallet/wallet.cpp')
-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 d449f83a8..99fcb21f6 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