Skip to content

Commit 214c4ec

Browse files
committed
[wallet] restore coinbase check in SubmitMemoryPoolAndRelay()
This check doesn't change mempool acceptance/relay behaviour, but reduces log spam.
1 parent e5fdda6 commit 214c4ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/wallet/wallet.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,6 +2160,9 @@ bool CWalletTx::SubmitMemoryPoolAndRelay(std::string& err_string, bool relay)
21602160
if (!pwallet->GetBroadcastTransactions()) return false;
21612161
// Don't relay abandoned transactions
21622162
if (isAbandoned()) return false;
2163+
// Don't try to submit coinbase transactions. These would fail anyway but would
2164+
// cause log spam.
2165+
if (IsCoinBase()) return false;
21632166

21642167
// Submit transaction to mempool for relay
21652168
pwallet->WalletLogPrintf("Submitting wtx %s to mempool for relay\n", GetHash().ToString());

0 commit comments

Comments
 (0)