[wallet] restore coinbase check in SubmitMemoryPoolAndRelay()
This check doesn't change mempool acceptance/relay behaviour, but reduces log spam.
This commit is contained in:
parent
e5fdda68c6
commit
214c4ecb9a
1 changed files with 3 additions and 0 deletions
|
@ -2160,6 +2160,9 @@ bool CWalletTx::SubmitMemoryPoolAndRelay(std::string& err_string, bool relay)
|
||||||
if (!pwallet->GetBroadcastTransactions()) return false;
|
if (!pwallet->GetBroadcastTransactions()) return false;
|
||||||
// Don't relay abandoned transactions
|
// Don't relay abandoned transactions
|
||||||
if (isAbandoned()) return false;
|
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
|
// Submit transaction to mempool for relay
|
||||||
pwallet->WalletLogPrintf("Submitting wtx %s to mempool for relay\n", GetHash().ToString());
|
pwallet->WalletLogPrintf("Submitting wtx %s to mempool for relay\n", GetHash().ToString());
|
||||||
|
|
Loading…
Reference in a new issue