diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 4642df3d4..bd8b19330 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1800,11 +1800,9 @@ void CWallet::ReacceptWalletTransactions() bool CWalletTx::RelayWalletTransaction() { assert(pwallet->GetBroadcastTransactions()); - if (!IsCoinBase() && !IsCoinStake() && !isAbandoned() && GetDepthInMainChain() == 0) + if (!IsCoinBase() && !IsCoinStake()) { - CValidationState state; - /* GetDepthInMainChain already catches known conflicts. */ - if (InMempool() || AcceptToMemoryPool(maxTxFee, state)) { + if (GetDepthInMainChain() == 0 && !isAbandoned() && InMempool()) { LogPrintf("Relaying wtx %s\n", GetHash().ToString()); RelayTransaction((CTransaction)*this); return true;