Don't resend wallet txs that aren't in our own mempool

This commit is contained in:
Alex Morcos
2016-02-11 17:10:41 -05:00
committed by lateminer
parent 289e2f80b4
commit db8b7554fd

View File

@@ -1731,7 +1731,7 @@ bool CWalletTx::RelayWalletTransaction()
assert(pwallet->GetBroadcastTransactions());
if (!IsCoinBase() && !IsCoinStake())
{
if (GetDepthInMainChain() == 0 && !isAbandoned()) {
if (GetDepthInMainChain() == 0 && !isAbandoned() && InMempool()) {
LogPrintf("Relaying wtx %s\n", GetHash().ToString());
RelayTransaction((CTransaction)*this);
return true;