Make RelayWalletTransaction attempt to AcceptToMemoryPool.
This commit is contained in:
committed by
lateminer
parent
b2b7ba690f
commit
0fab6dc7aa
@@ -1831,9 +1831,10 @@ void CWallet::ReacceptWalletTransactions()
|
||||
bool CWalletTx::RelayWalletTransaction()
|
||||
{
|
||||
assert(pwallet->GetBroadcastTransactions());
|
||||
if (!IsCoinBase() && !IsCoinStake())
|
||||
if (!(IsCoinBase() || IsCoinStake()) && !isAbandoned() && GetDepthInMainChain() == 0)
|
||||
{
|
||||
if (GetDepthInMainChain() == 0 && !isAbandoned() && InMempool()) {
|
||||
/* GetDepthInMainChain already catches known conflicts. */
|
||||
if (InMempool() || AcceptToMemoryPool(false, maxTxFee)) {
|
||||
LogPrintf("Relaying wtx %s\n", GetHash().ToString());
|
||||
CFeeRate feeRate;
|
||||
mempool.lookupFeeRate(GetHash(), feeRate);
|
||||
|
||||
Reference in New Issue
Block a user