diff --git a/src/net_processing.cpp b/src/net_processing.cpp --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -2546,8 +2546,10 @@ if (orphan_state.IsInvalid()) { // Punish peer that gave us an invalid orphan tx MaybePunishNodeForTx(fromPeer, orphan_state); - LogPrint(BCLog::MEMPOOL, " invalid orphan tx %s\n", - orphanTxId.ToString()); + LogPrint(BCLog::MEMPOOL, + " invalid orphan tx %s from peer=%d. %s\n", + orphanTxId.ToString(), fromPeer, + orphan_state.ToString()); } // Has inputs but not accepted to mempool // Probably non-standard or insufficient fee diff --git a/src/validation.cpp b/src/validation.cpp --- a/src/validation.cpp +++ b/src/validation.cpp @@ -551,8 +551,8 @@ Amount nFees = Amount::zero(); if (!Consensus::CheckTxInputs(tx, state, m_view, GetSpendHeight(m_view), nFees)) { - return error("%s: Consensus::CheckTxInputs: %s, %s", __func__, - tx.GetId().ToString(), state.ToString()); + // state filled in by CheckTxInputs + return false; } // Check for non-standard pay-to-script-hash in inputs