We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 47e6a19 + f692fce commit 57e337dCopy full SHA for 57e337d
src/wallet/wallet.cpp
@@ -1542,9 +1542,11 @@ void CWallet::ReacceptWalletTransactions()
1542
bool CWalletTx::RelayWalletTransaction(CConnman* connman)
1543
{
1544
assert(pwallet->GetBroadcastTransactions());
1545
- if (!IsCoinBase())
+ if (!IsCoinBase() && !isAbandoned() && GetDepthInMainChain() == 0)
1546
1547
- if (GetDepthInMainChain() == 0 && !isAbandoned() && InMempool()) {
+ CValidationState state;
1548
+ /* GetDepthInMainChain already catches known conflicts. */
1549
+ if (InMempool() || AcceptToMemoryPool(maxTxFee, state)) {
1550
LogPrintf("Relaying wtx %s\n", GetHash().ToString());
1551
if (connman) {
1552
CInv inv(MSG_TX, GetHash());
0 commit comments