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