From d1e74c5ee524fce6b74c1c72f6de1c97e5d9d27c 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();