Skip to content

Commit

Permalink
Update TaikoL1.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Jul 29, 2024
1 parent 74af1d5 commit 0d0485a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/protocol/contracts/L1/TaikoL1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,14 @@ contract TaikoL1 is EssentialContract, ITaikoL1, TaikoEvents {
for (uint256 i; i < _paramsArr.length; ++i) {
(, metaArr_[i],) =
LibProposing.proposeBlock(state, config, this, _paramsArr[i], _txListArr[i]);
}

uint64 firstBlockId = metaArr_[0].id;
if (firstBlockId < config.ontakeForkHeight) revert L1_FORK_ERROR();

if (LibUtils.shouldVerifyBlocks(config, firstBlockId, true) && !state.slotB.provingPaused) {
LibVerifying.verifyBlocks(state, config, this, config.maxBlocksToVerify);
uint64 id = metaArr_[i].id;
if (LibUtils.shouldVerifyBlocks(config, id, true) && !state.slotB.provingPaused) {
LibVerifying.verifyBlocks(state, config, this, config.maxBlocksToVerify);
}
}

if (metaArr_[0].id < config.ontakeForkHeight) revert L1_FORK_ERROR();
}

/// @inheritdoc ITaikoL1
Expand Down

0 comments on commit 0d0485a

Please sign in to comment.