Skip to content

Commit

Permalink
Update sdk/src/types/block/slot/epoch.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Thoralf-M <[email protected]>
  • Loading branch information
Alexandcoats and Thoralf-M authored Aug 25, 2023
1 parent 229293b commit 3668f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/types/block/slot/epoch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl EpochIndex {
break;
}
}
res = *start_epoch + (slot_index >> exponent);
res = *start_epoch + (slot_index >> exponent) + 1;
last = Some((*start_epoch, exponent));
}
// TODO: Or do we need to add one here?
Expand Down

0 comments on commit 3668f72

Please sign in to comment.