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
parent 2f3f4af4cc
commit 5a2b1c0c8b

View File

@ -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;