From cf64fa85a9084a1142351827edf4f497ae63a2e0 Mon Sep 17 00:00:00 2001 From: janko33bd Date: Sat, 3 Feb 2018 00:41:08 +0100 Subject: [PATCH] logic --- src/wallet/wallet.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 272ce0789..d9b8eda49 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1815,8 +1815,7 @@ void CWallet::ReacceptWalletTransactions() assert(wtx.GetHash() == wtxid); int nDepth = wtx.GetDepthInMainChain(); - - if (!wtx.IsCoinBase() && !wtx.IsCoinStake() && (nDepth == 0 && !wtx.isAbandoned() && (IsMine(wtx) || IsFromMe(wtx)))) { + if (!(wtx.IsCoinBase() || wtx.IsCoinStake()) && (nDepth == 0 && !wtx.isAbandoned()) && (IsMine(wtx) || IsFromMe(wtx))){ mapSorted.insert(std::make_pair(wtx.nOrderPos, &wtx)); } }