Skip to content

Commit

Permalink
Don't resend wallet txs that aren't in our own mempool
Browse files Browse the repository at this point in the history
Github-Pull: #7521
Rebased-From: 5a2b1c0
  • Loading branch information
morcos authored and MarcoFalke committed Apr 27, 2016
1 parent 66d5408 commit 21b2f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/wallet.cpp
Expand Up @@ -1264,7 +1264,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;
Expand Down

0 comments on commit 21b2f82

Please sign in to comment.