aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKewde <code@shadowproject.io>2017-04-07 00:53:12 +0000
committerGitHub <noreply@github.com>2017-04-07 00:53:12 +0000
commit3491476b6f486a85bef09f1a0bd4d39e1af9d0b1 (patch)
tree7a875275bf9c35ed0b52b4bc530dbab81b2847ff /src
parent8c28670e92b6422eb7576f074446238f9f221999 (diff)
downloadbitcoin-3491476b6f486a85bef09f1a0bd4d39e1af9d0b1.tar.xz
Wallet: reduce excess logic InMemPool()
removed the excess logic, return directly instead of using if-statement.
Diffstat (limited to 'src')
-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 55d81daab4..9749bac6a0 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -1760,10 +1760,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