go-ethereum/core/rawdb
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 core/rawdb: avoid unnecessary receipt processing for log filtering (#23147) 2021-09-28 12:54:49 +02:00
accessors_chain.go feat(api): add L1 fee to eth_getTransactionReceipt (#244) 2023-03-28 09:08:57 +08:00
accessors_chain_test.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
accessors_indexes.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
accessors_indexes_test.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
accessors_l1_message.go feat: add metrics in L1 message iterator (#527) 2023-10-01 14:48:59 +02:00
accessors_l1_message_test.go fix(worker): short-circuit l1 message iteration (#525) 2023-09-29 21:16:37 +02:00
accessors_metadata.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
accessors_rollup_event.go feat(rollup): sync finalized batches from L1 (#515) 2023-10-28 06:29:31 +08:00
accessors_rollup_event_test.go feat(rollup): sync finalized batches from L1 (#515) 2023-10-28 06:29:31 +08:00
accessors_row_consumption.go feat(rollup): add circuits capacity checker (#321) 2023-08-01 13:52:31 +08:00
accessors_row_consumption_test.go feat(rollup): add circuits capacity checker (#321) 2023-08-01 13:52:31 +08:00
accessors_skipped_txs.go feat: add metrics in L1 message iterator (#527) 2023-10-01 14:48:59 +02:00
accessors_skipped_txs_test.go feat(api/rawdb): allow storing traces for skipped txs (#500) 2023-09-05 11:03:15 +08:00
accessors_snapshot.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
accessors_state.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
chain_iterator.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
chain_iterator_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
database.go fix: use non-overlapping DB prefix for L1 messages (#532) 2023-10-04 19:28:26 +02:00
database_test.go eth/protocols/snap: generate storage trie from full dirty snap data (#22668) 2021-04-27 17:19:59 +03:00
freezer.go style: revert some formatting (#294) 2023-04-20 17:49:35 +08:00
freezer_batch.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
freezer_table.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
freezer_table_test.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
freezer_test.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
schema.go feat(rollup): sync finalized batches from L1 (#515) 2023-10-28 06:29:31 +08:00
table.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
table_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00