go-ethereum/eth
colin 441212200a
feat(rollup): sync finalized batches from L1 (#515)
* feat(rollup): sync finalized batches from L1

* tweak

* address comments

* address comments

* tweak

* address comments

* Update rollup/eventwatcher/eventwatcher.go

Co-authored-by: Péter Garamvölgyi <peter@scroll.io>

* address comments

* address comments

* address comments

* add s.rollupSyncService.Stop()

* add block chunk batch tests

* fix goimports-lint

* address comments

* address comments

* remove

* add TestUnpackLog test

* add decodeChunkRanges tests

* add commit batch version check

* fix goimport & golint

* tweak

* fixes

* add TestRollupSyncServiceStartAndStop

* add TestGetChunkRanges

* address comments

* add TestValidateBatch

* add TestCalculateFinalizedBatchMeta

* address comments

* address comments

* fix

* address comments

* address comments

* fix

* tweak log

* fix

* tweak logs

* increase wait time

* add --rollup.verify flag

* add flag check in s.rollupSyncService.Stop()

* bump version

* refactor

* tweak configs

* tweak

* refactor getLocalInfoForBatch

* use syscall.Kill(os.Getpid(), syscall.SIGTERM) to shutdown

* refactor decodeChunkBlockRanges

* nit

* address comments

* address comments

* add WithdrawRoot and StateRoot in FinalizedBatchMeta

* address comments

* address comments

* add ctx.Err() check in retry

* add configs in gen_config.go

* bump version

* fix goimport & golint

* try to fix goimport

* revert change

* fix goimport & golint

* tweak

* bump version

* add l2 block -> batch index mapping

* bump version

* add mainnet config

* bump version

* address comments

* rename some vars

* feat: add more detailed logs in crash case (#547)

add more detailed logs in crash case

* trigger ci

* re-add batch finalization progress log

* remove block number -> batch index mapping

---------

Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2023-10-28 06:29:31 +08:00
..
catalyst feat: Sync and relay L1 messages (#350) 2023-06-07 07:24:19 -07:00
downloader style: revert some formatting (#294) 2023-04-20 17:49:35 +08:00
ethconfig feat(rollup): sync finalized batches from L1 (#515) 2023-10-28 06:29:31 +08:00
fetcher Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
filters Fix/config fix small bug and set default maxBlockRange to -1 to not use it (#529) 2023-10-04 19:18:52 +02:00
gasprice feat(rollup): add circuits capacity checker (#321) 2023-08-01 13:52:31 +08:00
protocols feat(rollup): add circuits capacity checker (#321) 2023-08-01 13:52:31 +08:00
tracers fix: use FeeVault address in the EVM BlockContext (#473) 2023-08-19 14:01:14 +02:00
api.go fix(rawdb, api): fix rawdb.writeSkippedTransaction & api.GetSkippedTransaction (#503) 2023-09-07 15:35:04 +08:00
api_backend.go fix: use FeeVault address in the EVM BlockContext (#473) 2023-08-19 14:01:14 +02:00
api_test.go core, trie, eth, cmd: rework preimage store (#205) 2023-02-10 15:26:57 +08:00
backend.go feat(rollup): sync finalized batches from L1 (#515) 2023-10-28 06:29:31 +08:00
bloombits.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
discovery.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
handler.go feat: Sync and relay L1 messages (#350) 2023-06-07 07:24:19 -07:00
handler_eth.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
handler_eth_test.go feat(rollup): add circuits capacity checker (#321) 2023-08-01 13:52:31 +08:00
handler_snap.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
handler_test.go feat(rollup): add circuits capacity checker (#321) 2023-08-01 13:52:31 +08:00
peer.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
peerset.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
state_accessor.go fix: use FeeVault address in the EVM BlockContext (#473) 2023-08-19 14:01:14 +02:00
sync.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
sync_test.go feat: Sync and relay L1 messages (#350) 2023-06-07 07:24:19 -07:00