fix: ensure backwards compat config (#6319)

This commit is contained in:
Matthias Seitz
2024-02-01 12:49:59 +01:00
committed by GitHub
parent 76a6a8f50e
commit 4807d0260c
2 changed files with 1 additions and 1 deletions

View File

@ -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'

View File

@ -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,