Initialize the epoch for a joining node.
This commit is contained in:
parent
bcaf7aa698
commit
e4670cb951
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue