go-ethereum/core
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
..
asm Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
bloombits Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
forkid Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
rawdb feat(rollup): sync finalized batches from L1 (#515) 2023-10-28 06:29:31 +08:00
state core: implement EIP-3651, warm coinbase (#317) 2023-05-12 08:46:37 +02:00
types refactor(worker): order L1 messages by queue index (#512) 2023-09-18 10:34:51 +02:00
vm fix(trace): record account proof for ErrContractAddressCollision (#488) 2023-09-04 04:05:42 +00:00
.gitignore Renamed chain => core 2014-12-04 10:28:02 +01:00
bench_test.go feat(rollup): add circuits capacity checker (#321) 2023-08-01 13:52:31 +08:00
block_validator.go fix: re-enable CCC light mode (#530) 2023-10-04 14:01:55 +02:00
block_validator_test.go feat(rollup): add circuits capacity checker (#321) 2023-08-01 13:52:31 +08:00
blockchain.go fix: do not overwrite correct L1 index on signer startup (#443) 2023-08-06 14:22:02 +02:00
blockchain_insert.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
blockchain_reader.go feat: add replay blockResult API (#139) 2022-09-20 14:30:57 +08:00
blockchain_repair_test.go feat(rollup): add circuits capacity checker (#321) 2023-08-01 13:52:31 +08:00
blockchain_sethead_test.go feat(rollup): add circuits capacity checker (#321) 2023-08-01 13:52:31 +08:00
blockchain_snapshot_test.go feat(rollup): add circuits capacity checker (#321) 2023-08-01 13:52:31 +08:00
blockchain_test.go fix: exclude L1 message from block payload size validation (#476) 2023-08-23 14:06:06 +02:00
blocks.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
bloom_indexer.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
chain_indexer.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
chain_indexer_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
chain_makers.go set BaseFee to nil (#222) 2023-02-20 22:04:55 -08:00
chain_makers_test.go feat(rollup): add circuits capacity checker (#321) 2023-08-01 13:52:31 +08:00
dao_test.go feat(rollup): add circuits capacity checker (#321) 2023-08-01 13:52:31 +08:00
error.go feat(block_validator): check payload size during block validation (#322) 2023-05-24 15:23:57 +02:00
events.go feat: Sync and relay L1 messages (#350) 2023-06-07 07:24:19 -07:00
evm.go fix: use FeeVault address in the EVM BlockContext (#473) 2023-08-19 14:01:14 +02:00
gaspool.go miner: avoid unnecessary work (#15883) 2018-01-15 12:57:06 +02:00
gen_genesis.go set BaseFee to nil (#222) 2023-02-20 22:04:55 -08:00
gen_genesis_account.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
genesis.go feat: update network configuration (#533) 2023-10-08 16:03:41 +02:00
genesis_alloc.go feat: update network configuration (#533) 2023-10-08 16:03:41 +02:00
genesis_test.go feat: add new configuration (#526) 2023-10-08 13:29:09 +02:00
headerchain.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
headerchain_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
mkalloc.go style: revert some formatting (#294) 2023-04-20 17:49:35 +08:00
rlp_test.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
state_prefetcher.go fix: use FeeVault address in the EVM BlockContext (#473) 2023-08-19 14:01:14 +02:00
state_processor.go fix: use FeeVault address in the EVM BlockContext (#473) 2023-08-19 14:01:14 +02:00
state_processor_test.go feat(rollup): add circuits capacity checker (#321) 2023-08-01 13:52:31 +08:00
state_transition.go fix: use FeeVault address in the EVM BlockContext (#473) 2023-08-19 14:01:14 +02:00
trace.go refactor(tracing): refactor wrappedProof (#536) 2023-10-18 00:31:29 +08:00
tx_cacher.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
tx_journal.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
tx_list.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
tx_list_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
tx_noncer.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
tx_pool.go fix(miner): fix repeatedly processing dropped txs in a new block (#491) 2023-08-30 14:38:04 +08:00
tx_pool_test.go feat: update l1fee calculation (#351) 2023-06-13 10:57:59 +08:00
types.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00