Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Log ttd #3339

Closed
wants to merge 12 commits into from
Prev Previous commit
Next Next commit
Appease clippy
  • Loading branch information
paulhauner committed Jul 20, 2022
commit 86d6d62412771d5a6b2ac217d8faad6a6e41efe1
10 changes: 2 additions & 8 deletions beacon_node/beacon_chain/src/merge_readiness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,8 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
let merge_readiness_preparation_slots =
MERGE_READINESS_PREPARATION_SECONDS / self.spec.seconds_per_slot;

if current_slot + merge_readiness_preparation_slots > bellatrix_slot {
// Bellatrix is either nearby or has already happened, time to prepare!
true
} else {
// The Bellatrix fork epoch is far enough in the future that we don't need to
// prepare yet.
false
}
// Return `true` if Bellatrix has happened or is within the preparation time.
current_slot + merge_readiness_preparation_slots > bellatrix_slot
} else {
// The Bellatrix fork epoch has not been defined yet, no need to prepare.
false
Expand Down