go-ethereum/cmd/geth
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
..
testdata Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
accountcmd.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
accountcmd_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
chaincmd.go feat: add new configuration (#526) 2023-10-08 13:29:09 +02:00
config.go feat: add replay blockResult API (#139) 2022-09-20 14:30:57 +08:00
consolecmd.go feat: add new configuration (#526) 2023-10-08 13:29:09 +02:00
consolecmd_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
dao_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
dbcmd.go feat: add new configuration (#526) 2023-10-08 13:29:09 +02:00
genesis_test.go chore: remove outdated genesis.json (#297) 2023-04-20 19:58:25 +08:00
les_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
main.go feat(rollup): sync finalized batches from L1 (#515) 2023-10-28 06:29:31 +08:00
misccmd.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
run_test.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
snapshot.go feat: add new configuration (#526) 2023-10-08 13:29:09 +02:00
usage.go feat: add new configuration (#526) 2023-10-08 13:29:09 +02:00
version_check.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
version_check_test.go cmd/geth: add test to verify regexps in version check (#21962) 2020-12-09 13:59:24 +01:00