Jonas Theis
ac8164f5a4
feat: follower node sync from DA ( #1098 )
...
* port changes from #1013
* port changes from #1068
* go.mod tidy
* fix compile error
* fix goimports
* fix log
* address review comments
* upgrade golang.org/x/net to 0.23.0
* bump version
* remove unused flag
* update da-codec commit
---------
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2024-12-18 17:27:51 +01:00
colin
cf1ca84e0e
feat: allow changing L1 synced height via admin RPC/CLI ( #1044 )
...
* feat: allow changing L1 synced height via RPC/CLI
* chore: auto version bump [bot]
* fix typos
* add height validity check
* change implementation
* moved hotfix apis from ScrollAPI to PrivateAdminAPI
* change namespace from scroll to admin
* fix bugs
* add locks
* add a lock to protect latestProcessedBlock and db state
* revert some changes
* remove lock and use atomic in latestProcessedBlock
* fix CI
* tweak
* use cas in updating latestProcessedBlock
* renaming
* also update sync height in error paths
* fix a bug
* use mutex lock
---------
Co-authored-by: colinlyguo <colinlyguo@users.noreply.github.com>
2024-09-25 03:18:37 +08:00
colin
03f3b2b60d
fix(rollup-verifier): delete committed batch meta when reverting a batch ( #1000 )
...
* fix(rollup-verifier): delete committed batch metadata when reverting a batch
* chore: auto version bump [bot]
* remove a comment
---------
Co-authored-by: colinlyguo <colinlyguo@users.noreply.github.com>
2024-08-26 11:15:29 +02:00
colin
9de4980851
feat(rollup-verifier): codecv4 ( #991 )
...
* feat(rollup-verifier): codecv4
* fix golint
* enhancements
* rename
* rename
* feat: add darwinv2 in genesis config
* bump version
* fix typo
* Update params/config.go
Co-authored-by: georgehao <haohongfan@gmail.com>
* add DarwinV2
* address comments
* move a comment to other places
* small refactors
* chore: auto version bump [bot]
* update da-codec commit
* fix a bug
---------
Co-authored-by: georgehao <haohongfan@gmail.com>
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
Co-authored-by: colinlyguo <colinlyguo@users.noreply.github.com>
2024-08-23 14:50:08 +08:00
colin
de0385e7d2
fix(verifier): nil panic due to batch write ( #911 )
2024-07-20 00:39:28 +08:00
colin
0360eba836
fix(l2geth-verifier): only check last batch of the bundle ( #904 )
...
* fix(l2geth-verifier): only check the last batch of each bundle
* refactor function comments
* add more logs to debug
* fix the bug
* Revert "add more logs to debug"
This reverts commit 4befe9fe739275988b4bf34999bd1aad4d7a1d0e.
* tweak
* TestValidateBatchInFinalizeByBundle
* update da-codec dependency
* move rawdb.WriteFinalizedBatchMeta outside the loop
* use batch writer
* change log.Crit to log.Error
2024-07-17 20:01:40 +08:00
colin
df08f60183
fix(rollup-verifier): decode commitBatchWithBlobProof calldata ( #896 )
...
fix(rollup-verifier): decode commitBatchWithBlobProof
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2024-07-13 00:37:31 +08:00
Mengran Lan
15019efa6c
feat: add codecv3 for darwin batches ( #866 )
...
* feat: add codecv3 for darwin batches
* fix lint issue
* chore: auto version bump [bot]
* update da-codec dependency
---------
Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
Co-authored-by: colinlyguo <colinlyguo@users.noreply.github.com>
Co-authored-by: colinlyguo <colinlyguo@scroll.io>
2024-07-09 14:14:58 +08:00
Mengran Lan
ef980a2059
feat(rollup_sync_service): handle multiple batches in FinalizeBatch event ( #865 )
...
* feat: now FinalizeBatch event will influence one or more batches
* fix bug && add unit test
* fix typo
* Update core/rawdb/accessors_rollup_event_test.go
Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
* trivial fix
* chore: auto version bump [bot]
* trivial change: move write finalized things logic out of loop
* utilize code && comment
* remove redundant check
* two log level changing case
---------
Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
Co-authored-by: Thegaram <Thegaram@users.noreply.github.com>
2024-07-01 22:24:32 +08:00
colin
e162fbb7c0
feat: turn libscroll_zstd dynamic lib into static ( #794 )
...
* feat: remove .so file dependency of libscroll_zstd
* bump version
* remove wget installment
* simplify dockerfile and add envs
* revert alpine changes
* fix
* fix CI
* update dependency
* chore: auto version bump [bot]
---------
Co-authored-by: colinlyguo <colinlyguo@users.noreply.github.com>
2024-06-05 17:22:37 +08:00
colin
b091e4f9c9
feat(rollup-sync-service): support codecv2 ( #726 )
...
* feat(codecv1): support zstd compression
* revert .gitignore changes
* change dependency
* add zstd compression
* bump golang version to 1.21.x
* use codecv2
* remove an invalid command
* tweak
* tweak
* remove libzstd, use .so files in da-codec release instead
* fix CI
* fix CI
* try fix CI
* fix CI
* tweak
* fix
* fix CI
* tweak
* tweak
* address comments
* tweak
* remove cp to /usr/local/lib
* fix CI
* remove cp to /usr/local/lib in CI
* try fix
* fix
* fix
* fix
* remove env GO111MODULE=on
* add .so files to Dockerfiles
* revert make geth changes
* fix Dockerfile changes
* tweak
* revert changes
* tweak
* trigger ci
* update Dockerfiles
* fix
* add codecv2 in decode block ranges from encoded chunks
* address comment
* nit
* update dependencies
* use /scroll/lib/ in testing
* trigger ci
* add unit tests
* chore: auto version bump [bot]
* remove zkp-builder in Dockerfile.mockccc
* fix Dockerfile
* Update Makefile
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
* use -Wl,-rpath,/scroll/lib/
* change some static values to env var
* update dependency
* change pwd to scroll_lib_path
* fix
* add sudo in mkdir
* add sudo
* update da-codec dependency
* chore: auto version bump [bot]
* chore: auto version bump [bot]
* chore: auto version bump [bot]
* update zstd dependency
* update libscroll_zstd.so and remove libzktrie.so related to zstd
* chore: auto version bump [bot]
* uncomment ./rollup tests
* fix CI
* fix CI
* upgrade libzkp to v0.11.0rc2 (#773 )
* upgrade libzkp
* remove zktrie.so
* done
* fix build
---------
Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
---------
Co-authored-by: colinlyguo <colinlyguo@users.noreply.github.com>
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
Co-authored-by: Zhang Zhuo <mycinbrin@gmail.com>
2024-05-30 11:03:31 +08:00
colin
5115f1342d
fix(rollup-verifier): hardcode genesis codec version as codecv0 and sync codecv1 implementation ( #699 )
...
* fix(rollup-verifier): update codecv1
* fix genesis batch codec check
* bump version
2024-04-16 14:22:05 +08:00
colin
55b03ff405
feat(rollup-verifier): support codecv1 ( #678 )
2024-04-04 18:52:23 +08:00
colin
483949b87e
fix(rollup sync service): remove syscall.Kill ( #636 )
...
* fix(rollup sync service): remove syscall.Kill
* bump version
2024-02-21 16:57:09 +08:00
colin
b235afbccf
feat(rollup): add fallback if TransactionByHash fails in getting commitBatch calldata ( #601 )
...
* feat(rollup): add fallback if TransactionByHash fails in getting commitBatch calldata
* Update rollup/rollup_sync_service/rollup_sync_service.go
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
* change log.Warn to log.Debug
---------
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2023-12-18 14:51:46 +01:00
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