Skip to content

Commit

Permalink
set epoch height
Browse files Browse the repository at this point in the history
  • Loading branch information
jparr721 committed Jan 31, 2025
1 parent d29a146 commit 78a0c0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/src/v0/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,10 +579,11 @@ pub trait SequencerPersistence: Sized + Send + Sync + Clone + 'static {
"loaded consensus state"
);

let epoch_height = state.epoch_height.unwrap_or(0);
Ok((
HotShotInitializer {
instance_state: state,
epoch_height: 0,
epoch_height,
anchor_leaf: leaf,
anchor_state: validated_state.unwrap_or_default(),
anchor_state_delta: None,
Expand Down

0 comments on commit 78a0c0b

Please sign in to comment.