diff options
| author | John Newbery <[email protected]> | 2020-08-24 16:40:10 +0100 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2020-09-07 11:16:12 +0100 |
| commit | 3115e00f75b41d9765dcbb376e367b25f61a1d58 (patch) | |
| tree | 9b317b56990980b7074ad6794a77f730e96fe8b9 /src/net_processing.cpp | |
| parent | [net processing] Move ProcessOrphanTx to PeerManager (diff) | |
| download | discoin-3115e00f75b41d9765dcbb376e367b25f61a1d58.tar.xz discoin-3115e00f75b41d9765dcbb376e367b25f61a1d58.zip | |
[net processing] Move MaybePunishPeerForTx to PeerManager
Diffstat (limited to 'src/net_processing.cpp')
| -rw-r--r-- | src/net_processing.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 76913bc4b..c99b73bd3 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1182,12 +1182,7 @@ bool PeerManager::MaybePunishNodeForBlock(NodeId nodeid, const BlockValidationSt return false; } -/** - * Potentially disconnect and discourage a node based on the contents of a TxValidationState object - * - * @return Returns true if the peer was punished (probably disconnected) - */ -static bool MaybePunishNodeForTx(NodeId nodeid, const TxValidationState& state, const std::string& message = "") +bool PeerManager::MaybePunishNodeForTx(NodeId nodeid, const TxValidationState& state, const std::string& message) { switch (state.GetResult()) { case TxValidationResult::TX_RESULT_UNSET: |