Skip to content

Commit

Permalink
[wallet] restore coinbase check in SubmitMemoryPoolAndRelay()
Browse files Browse the repository at this point in the history
This check doesn't change mempool acceptance/relay behaviour, but reduces log spam.
  • Loading branch information
jnewbery committed Aug 6, 2019
1 parent e5fdda6 commit 214c4ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2160,6 +2160,9 @@ bool CWalletTx::SubmitMemoryPoolAndRelay(std::string& err_string, bool relay)
if (!pwallet->GetBroadcastTransactions()) return false;
// Don't relay abandoned transactions
if (isAbandoned()) return false;
// Don't try to submit coinbase transactions. These would fail anyway but would
// cause log spam.
if (IsCoinBase()) return false;

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

0 comments on commit 214c4ec

Please sign in to comment.