Initialize the epoch for a joining node.

This commit is contained in:
Andreas Fackler 2018-11-15 14:56:33 +01:00 committed by Nick Sanders
parent bcaf7aa698
commit e4670cb951
1 changed files with 2 additions and 0 deletions

View File

@ -360,6 +360,8 @@ impl<T: Contribution> Handler<T> {
self.hdb.config(),
&self.step_queue,
)?);
let (era, epoch) = state.dhb().unwrap().epoch();
self.hdb.set_current_epoch(era + epoch);
}
None => {
iom_queue_opt = Some(state.set_validator(