mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 05:44:44 +00:00
Test backfill (#5109)
* Test backfill * Revert cargo.toml * Update beacon_node/beacon_chain/src/builder.rs Co-authored-by: João Oliveira <hello@jxs.pt> * Remove redundant code
This commit is contained in:
@@ -846,10 +846,14 @@ where
|
||||
let genesis_backfill_slot = if self.chain_config.genesis_backfill {
|
||||
Slot::new(0)
|
||||
} else {
|
||||
let backfill_epoch_range = (self.spec.min_validator_withdrawability_delay
|
||||
+ self.spec.churn_limit_quotient)
|
||||
.as_u64()
|
||||
/ 2;
|
||||
let backfill_epoch_range = if cfg!(feature = "test_backfill") {
|
||||
3
|
||||
} else {
|
||||
(self.spec.min_validator_withdrawability_delay + self.spec.churn_limit_quotient)
|
||||
.as_u64()
|
||||
/ 2
|
||||
};
|
||||
|
||||
match slot_clock.now() {
|
||||
Some(current_slot) => {
|
||||
let genesis_backfill_epoch = current_slot
|
||||
|
||||
Reference in New Issue
Block a user