diff options
author | Alex Morcos <morcos@chaincode.com> | 2016-02-11 17:10:41 -0500 |
---|---|---|
committer | Alex Morcos <morcos@chaincode.com> | 2016-02-11 17:34:55 -0500 |
commit | 5a2b1c0c8b49c5ae79946e71b9f989b33c9fcf5c (patch) | |
tree | 26eeb9a43cedb945afb8829feb7109a8b69a51c9 /src | |
parent | 2f3f4af4cc2b92b8758858d0a1c13635065eb379 (diff) |
Don't resend wallet txs that aren't in our own mempool
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 65defc30aa..ac109b54d4 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1265,7 +1265,7 @@ bool CWalletTx::RelayWalletTransaction() assert(pwallet->GetBroadcastTransactions()); if (!IsCoinBase()) { - if (GetDepthInMainChain() == 0 && !isAbandoned()) { + if (GetDepthInMainChain() == 0 && !isAbandoned() && InMempool()) { LogPrintf("Relaying wtx %s\n", GetHash().ToString()); RelayTransaction((CTransaction)*this); return true; |