From 2b6fb8d9dc0731219f0dcec32d5ebf0dab481cb7 Mon Sep 17 00:00:00 2001 From: Akosh Farkash Date: Thu, 19 Oct 2023 16:44:34 +0100 Subject: [PATCH] FIX: Height check in checkpoint submission --- src/subnet/SubnetActorManagerFacet.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subnet/SubnetActorManagerFacet.sol b/src/subnet/SubnetActorManagerFacet.sol index 9763f4e3b..6c6b2debf 100644 --- a/src/subnet/SubnetActorManagerFacet.sol +++ b/src/subnet/SubnetActorManagerFacet.sol @@ -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();