Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
Show First 20 Lines • Show All 2,540 Lines • ▼ Show 20 Lines | while (!done && !orphan_work_set.empty()) { | ||||
} | } | ||||
EraseOrphanTx(orphanTxId); | EraseOrphanTx(orphanTxId); | ||||
done = true; | done = true; | ||||
} else if (orphan_state.GetResult() != | } else if (orphan_state.GetResult() != | ||||
TxValidationResult::TX_MISSING_INPUTS) { | TxValidationResult::TX_MISSING_INPUTS) { | ||||
if (orphan_state.IsInvalid()) { | if (orphan_state.IsInvalid()) { | ||||
// Punish peer that gave us an invalid orphan tx | // Punish peer that gave us an invalid orphan tx | ||||
MaybePunishNodeForTx(fromPeer, orphan_state); | MaybePunishNodeForTx(fromPeer, orphan_state); | ||||
LogPrint(BCLog::MEMPOOL, " invalid orphan tx %s\n", | LogPrint(BCLog::MEMPOOL, | ||||
orphanTxId.ToString()); | " invalid orphan tx %s from peer=%d. %s\n", | ||||
orphanTxId.ToString(), fromPeer, | |||||
orphan_state.ToString()); | |||||
} | } | ||||
// Has inputs but not accepted to mempool | // Has inputs but not accepted to mempool | ||||
// Probably non-standard or insufficient fee | // Probably non-standard or insufficient fee | ||||
LogPrint(BCLog::MEMPOOL, " removed orphan tx %s\n", | LogPrint(BCLog::MEMPOOL, " removed orphan tx %s\n", | ||||
orphanTxId.ToString()); | orphanTxId.ToString()); | ||||
assert(recentRejects); | assert(recentRejects); | ||||
recentRejects->insert(orphanTxId); | recentRejects->insert(orphanTxId); | ||||
▲ Show 20 Lines • Show All 3,363 Lines • Show Last 20 Lines |