diff --git a/packages/protocol/contracts/layer1/based/LibProving.sol b/packages/protocol/contracts/layer1/based/LibProving.sol index 3ead8de2ed5..c837a631ad3 100644 --- a/packages/protocol/contracts/layer1/based/LibProving.sol +++ b/packages/protocol/contracts/layer1/based/LibProving.sol @@ -262,8 +262,7 @@ library LibProving { local.proposedAt = local.postFork ? local.meta.proposedAt : blk.proposedAt; - local.isSyncBlock = - LibUtils.shouldSyncStateRoot(_config.stateRootSyncInternal, local.blockId); + local.isSyncBlock = LibUtils.isSyncBlock(_config.stateRootSyncInternal, local.blockId); if (local.isSyncBlock) { local.stateRoot = ctx_.tran.stateRoot; } diff --git a/packages/protocol/contracts/layer1/based/LibUtils.sol b/packages/protocol/contracts/layer1/based/LibUtils.sol index 6f132186381..c55fba7b305 100644 --- a/packages/protocol/contracts/layer1/based/LibUtils.sol +++ b/packages/protocol/contracts/layer1/based/LibUtils.sol @@ -286,7 +286,7 @@ library LibUtils { return _blockId % segmentSize == (_isBlockProposed ? 0 : segmentSize >> 1); } - function shouldSyncStateRoot( + function isSyncBlock( uint256 _stateRootSyncInternal, uint256 _blockId ) diff --git a/packages/protocol/contracts/layer1/based/LibVerifying.sol b/packages/protocol/contracts/layer1/based/LibVerifying.sol index 0957acb859f..4080f732b1a 100644 --- a/packages/protocol/contracts/layer1/based/LibVerifying.sol +++ b/packages/protocol/contracts/layer1/based/LibVerifying.sol @@ -145,7 +145,7 @@ library LibVerifying { }); } - if (LibUtils.shouldSyncStateRoot(_config.stateRootSyncInternal, local.blockId)) { + if (LibUtils.isSyncBlock(_config.stateRootSyncInternal, local.blockId)) { bytes32 stateRoot = ts.stateRoot; if (stateRoot != 0) { local.syncStateRoot = stateRoot;