Skip to content

Commit

Permalink
feat(protocol): check lastVerifiedBatchId with Pacaya fork height i…
Browse files Browse the repository at this point in the history
…n `getLastVerifiedTransition` (#18906)
  • Loading branch information
davidtaikocha authored Feb 10, 2025
1 parent c4d4d46 commit d97d726
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/protocol/contracts/layer1/based/TaikoInbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ abstract contract TaikoInbox is EssentialContract, ITaikoInbox, ITaiko {
returns (uint64 batchId_, uint64 blockId_, TransitionState memory ts_)
{
batchId_ = state.stats2.lastVerifiedBatchId;
require(batchId_ >= pacayaConfig().forkHeights.pacaya, BatchNotFound());
blockId_ = getBatch(batchId_).lastBlockId;
ts_ = getBatchVerifyingTransition(batchId_);
}
Expand Down

0 comments on commit d97d726

Please sign in to comment.