mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(net): extract NetworkHandle methods for launching node to traits (#9966)
This commit is contained in:
@ -189,3 +189,16 @@ impl From<Reputation> for ReputationChange {
|
||||
Self(value)
|
||||
}
|
||||
}
|
||||
|
||||
/// Outcomes when a reputation change is applied to a peer
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub enum ReputationChangeOutcome {
|
||||
/// Nothing to do.
|
||||
None,
|
||||
/// Ban the peer.
|
||||
Ban,
|
||||
/// Ban and disconnect
|
||||
DisconnectAndBan,
|
||||
/// Unban the peer
|
||||
Unban,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user