Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
FIX: Height check in checkpoint submission
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh committed Oct 19, 2023
1 parent c9dfe98 commit 2b6fb8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subnet/SubnetActorManagerFacet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ contract SubnetActorManagerFacet is ISubnetActor, SubnetActorModifiers, Reentran
// the checkpoint height must be equal to the last bottom-up checkpoint height or
// the next one
if (
checkpoint.blockHeight != s.lastBottomUpCheckpointHeight + s.bottomUpCheckPeriod ||
checkpoint.blockHeight != s.lastBottomUpCheckpointHeight + s.bottomUpCheckPeriod &&
checkpoint.blockHeight != s.lastBottomUpCheckpointHeight
) {
revert InvalidCheckpointEpoch();
Expand Down

0 comments on commit 2b6fb8d

Please sign in to comment.