We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bd5e53 commit 2b21feeCopy full SHA for 2b21fee
mm2src/mm2_main/src/lp_network.rs
@@ -649,8 +649,10 @@ mod sync_ban {
649
PER_PEER_SYNC_BAN_GRACE.as_secs()
650
);
651
652
- set_ban_reason(peer, ban_reason_from_sync_failure(cause));
653
- temp_ban_peer(ctx, peer, Duration::from_secs(TEMP_BAN_DURATION_SECS));
+ if matches!(cause, SyncFailureCause::InvalidOrIncomplete) {
+ set_ban_reason(peer, ban_reason_from_sync_failure(cause));
654
+ temp_ban_peer(ctx, peer, Duration::from_secs(TEMP_BAN_DURATION_SECS));
655
+ }
656
} else {
657
let remaining = PER_PEER_SYNC_BAN_GRACE.as_secs().saturating_sub(elapsed.as_secs());
658
log::warn!(
0 commit comments