Skip to content

Commit

Permalink
bug fix, adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
bayk committed Dec 4, 2024
1 parent 86203e0 commit fb5d02f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chain/src/pibd_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ impl PibdParams {
cmp::min(range.start.saturating_add(1), range.end.saturating_sub(1))
} else {
debug_assert!(range.end - range.start <= 3); // it is not true, add more ifs for memory checking
cmp::min(range.start.saturating_add(2), range.end.saturating_sub(2))
cmp::min(range.start.saturating_add(2), range.end.saturating_sub(1))
}
}

Expand Down
2 changes: 1 addition & 1 deletion p2p/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const PEER_MAX_OUTBOUND_COUNT: u32 = 10;
const PEER_MIN_PREFERRED_OUTBOUND_COUNT: u32 = 8;

/// During sync process we want to boost peers discovery.
const PEER_BOOST_OUTBOUND_COUNT: u32 = 100;
const PEER_BOOST_OUTBOUND_COUNT: u32 = 25;

/// The peer listener buffer count. Allows temporarily accepting more connections
/// than allowed by PEER_MAX_INBOUND_COUNT to encourage network bootstrapping.
Expand Down

0 comments on commit fb5d02f

Please sign in to comment.