Skip to content

Commit cc9ed4c

Browse files
committed
fix finalize
1 parent a2e23e4 commit cc9ed4c

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

bindings/bin/rollup_deployed.hex

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

bindings/bindings/rollup.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/bindings/rollup_more.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/contracts/l1/rollup/Rollup.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,9 @@ contract Rollup is IRollup, OwnableUpgradeable, PausableUpgradeable {
372372
// verify consistency between batchDataInput and batchHeader
373373
_verifyBatchConsistency(batchDataInput, memPtr);
374374

375+
// Override finalizeTimestamp for ZKP-backed immediate finality
376+
batchDataStore[_batchIndex].finalizeTimestamp = block.timestamp;
377+
375378
// verify proof
376379
_verifyProof(memPtr, _batchProof);
377380
// finalize batch

0 commit comments

Comments
 (0)