diff options
| author | MarcoFalke <[email protected]> | 2020-05-16 10:40:17 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-05-16 10:37:43 -0400 |
| commit | fa9f20b6477a206adf5089398803b45d1a114b6f (patch) | |
| tree | 2b84d5352975f6a2f7c0310e4e7e86d8c3b1a457 /src/net_processing.cpp | |
| parent | Merge #18634: ci: Add fuzzbuzz integration configuration file (diff) | |
| download | discoin-fa9f20b6477a206adf5089398803b45d1a114b6f.tar.xz discoin-fa9f20b6477a206adf5089398803b45d1a114b6f.zip | |
log: Properly log txs rejected from mempool
Diffstat (limited to 'src/net_processing.cpp')
| -rw-r--r-- | src/net_processing.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 7e9bb2f27..fd8f05a46 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1954,7 +1954,10 @@ void static ProcessOrphanTx(CConnman* connman, CTxMemPool& mempool, std::set<uin if (MaybePunishNodeForTx(fromPeer, orphan_state)) { setMisbehaving.insert(fromPeer); } - LogPrint(BCLog::MEMPOOL, " invalid orphan tx %s\n", orphanHash.ToString()); + LogPrint(BCLog::MEMPOOL, " invalid orphan tx %s from peer=%d. %s\n", + orphanHash.ToString(), + fromPeer, + orphan_state.ToString()); } // Has inputs but not accepted to mempool // Probably non-standard or insufficient fee @@ -2801,8 +2804,7 @@ bool ProcessMessage(CNode* pfrom, const std::string& msg_type, CDataStream& vRec // peer simply for relaying a tx that our recentRejects has caught, // regardless of false positives. - if (state.IsInvalid()) - { + if (state.IsInvalid()) { LogPrint(BCLog::MEMPOOLREJ, "%s from peer=%d was not accepted: %s\n", tx.GetHash().ToString(), pfrom->GetId(), state.ToString()); |