Skip to content

Commit

Permalink
Update LibVerifying.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Jun 13, 2024
1 parent 8988a1c commit 0863c91
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions packages/protocol/contracts/L1/libs/LibVerifying.sol
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,10 @@ library LibVerifying {
ITierRouter(_resolver.resolve(LibStrings.B_TIER_ROUTER, false));
}

if (
!LibUtils.isPostDeadline(
ts.timestamp,
local.b.lastUnpausedAt,
ITierProvider(local.tierRouter.getProvider(local.blockId)).getTier(
local.tier
).cooldownWindow
)
) {
uint24 cooldown = ITierProvider(local.tierRouter.getProvider(local.blockId))
.getTier(local.tier).cooldownWindow;

if (!LibUtils.isPostDeadline(ts.timestamp, local.b.lastUnpausedAt, cooldown)) {
// If cooldownWindow is 0, the block can theoretically
// be proved and verified within the same L1 block.
break;
Expand Down

0 comments on commit 0863c91

Please sign in to comment.