Browse Source

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

0.13
Alex Morcos 9 years ago
parent
commit
5a2b1c0c8b
  1. 2
      src/wallet/wallet.cpp

2
src/wallet/wallet.cpp

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

Loading…
Cancel
Save