Update stakers_slot_offset if slots_per_epoch is adjusted (#4660)

This commit is contained in:
Michael Vines 2019-06-12 14:12:17 -07:00 committed by GitHub
parent d807217be7
commit 8e86014311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -330,6 +330,7 @@ fn main() -> Result<(), Box<dyn error::Error>> {
genesis_block.ticks_per_slot = value_t_or_exit!(matches, "ticks_per_slot", u64);
genesis_block.slots_per_epoch = value_t_or_exit!(matches, "slots_per_epoch", u64);
genesis_block.stakers_slot_offset = genesis_block.slots_per_epoch;
genesis_block.poh_config.target_tick_duration =
Duration::from_millis(value_t_or_exit!(matches, "target_tick_duration", u64));