mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
fix: ensure backwards compat config (#6319)
This commit is contained in:
@ -381,7 +381,6 @@ timeout = -4096
|
|||||||
bad_protocol = -2147483648
|
bad_protocol = -2147483648
|
||||||
failed_to_connect = -25600
|
failed_to_connect = -25600
|
||||||
dropped = -4096
|
dropped = -4096
|
||||||
bad_announcement = -1204
|
|
||||||
|
|
||||||
[peers.backoff_durations]
|
[peers.backoff_durations]
|
||||||
low = '30s'
|
low = '30s'
|
||||||
|
|||||||
@ -46,6 +46,7 @@ pub(crate) fn is_banned_reputation(reputation: i32) -> bool {
|
|||||||
/// How the [`ReputationChangeKind`] are weighted.
|
/// How the [`ReputationChangeKind`] are weighted.
|
||||||
#[derive(Debug, Clone, PartialEq)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||||
|
#[cfg_attr(feature = "serde", serde(default))]
|
||||||
pub struct ReputationChangeWeights {
|
pub struct ReputationChangeWeights {
|
||||||
/// Weight for [`ReputationChangeKind::BadMessage`]
|
/// Weight for [`ReputationChangeKind::BadMessage`]
|
||||||
pub bad_message: Reputation,
|
pub bad_message: Reputation,
|
||||||
|
|||||||
Reference in New Issue
Block a user