diff options
| author | Alex Morcos <[email protected]> | 2016-02-11 17:10:41 -0500 |
|---|---|---|
| committer | Alex Morcos <[email protected]> | 2016-02-11 17:34:55 -0500 |
| commit | 5a2b1c0c8b49c5ae79946e71b9f989b33c9fcf5c (patch) | |
| tree | 26eeb9a43cedb945afb8829feb7109a8b69a51c9 /src/wallet/wallet.cpp | |
| parent | Merge #7500: Correctly report high-S violations (diff) | |
| download | discoin-5a2b1c0c8b49c5ae79946e71b9f989b33c9fcf5c.tar.xz discoin-5a2b1c0c8b49c5ae79946e71b9f989b33c9fcf5c.zip | |
Don't resend wallet txs that aren't in our own mempool
Diffstat (limited to 'src/wallet/wallet.cpp')
| -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 65defc30a..ac109b54d 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; |