Skip to content

Commit

Permalink
hack(connection): hack ice period duration
Browse files Browse the repository at this point in the history
  • Loading branch information
lrubiorod committed Oct 18, 2020
1 parent 3e33fbb commit 676a46b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions p2p/src/peers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,14 @@ impl Peers {
/// period that is more permissive and allows for more agile peers discovery during
/// the process of bootstrapping the network.
pub fn current_ice_period(&self) -> i64 {
if self.bootstrapped {
// FIXME(#1646): Remove this hack
let now = get_timestamp();
// Tuesday, October 20, 2020 09:00:00 AM UTC
if self.bootstrapped && now > 1_603_184_400 {
i64::try_from(self.ice_period.as_secs())
.expect("Ice period should fit in the range of u64")
} else {
60
1800
}
}

Expand Down

0 comments on commit 676a46b

Please sign in to comment.