Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Oct 16, 2024
1 parent 2b24d40 commit 3ad9cad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/protocol/contracts/layer1/based/LibProving.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/layer1/based/LibUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ library LibUtils {
return _blockId % segmentSize == (_isBlockProposed ? 0 : segmentSize >> 1);
}

function shouldSyncStateRoot(
function isSyncBlock(
uint256 _stateRootSyncInternal,
uint256 _blockId
)
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/layer1/based/LibVerifying.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3ad9cad

Please sign in to comment.