Péter Garamvölgyi
7da0bd5480
feat: delay Scroll mainnet Curie block by 6 days ( #850 )
...
* feat: delay Scroll mainnet Curie block by 6 days
* update
* update
2024-06-24 11:26:47 +02:00
sbaizet
517e5b4b07
Support arm64 dedicated workflow ( #841 )
...
* add self hosted runner to publish arm64 images
* test build with macos and ubuntu arm64
* Add docker to mac runner and remove qemu
* dedicated workflow for arm64 image
* cleaning
* ci: add a different name for workflow docker arm64
* clean workflow
* only build arm64 image and make tag configurable
2024-06-21 15:34:06 +02:00
Ömer Faruk Irmak
f40dca0b80
fix: do not attempt to free nil rust trace ( #845 )
2024-06-21 14:29:05 +03:00
Ömer Faruk Irmak
aafca83598
fix: free rust traces that never make it to CCC ( #844 )
2024-06-21 12:39:43 +03:00
Péter Garamvölgyi
c00352023b
fix: update l1 db entry for curie transition block ( #835 )
2024-06-20 15:00:07 +03:00
Ho
4e3bf2f58e
fix(traces): deletion proof apply wrong storage value from structLogger ( #838 )
...
* fix issue caused by unmatching storage value
* lint
* chore: auto version bump [bot]
---------
Co-authored-by: HAOYUatHZ <HAOYUatHZ@users.noreply.github.com>
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2024-06-20 19:52:37 +08:00
sbaizet
f2efa44e11
ci: Support arm64 dedicated workflow ( #840 )
...
* add self hosted runner to publish arm64 images
* test build with macos and ubuntu arm64
* Add docker to mac runner and remove qemu
* dedicated workflow for arm64 image
* cleaning
2024-06-20 11:07:14 +02:00
Ömer Faruk Irmak
94c6fc097a
refactor: cleanup scroll_worker.go ( #823 )
2024-06-14 15:02:21 +03:00
Ömer Faruk Irmak
316138099f
refactor: remove unused storage traces ( #819 )
2024-06-14 15:02:00 +03:00
Péter Garamvölgyi
fc9db9f65f
fix(txpool): compare gas tip cap instead of effective gas tip cap ( #825 )
...
fix: compare gas tip cap instead of effective gas tip cap
2024-06-13 15:21:34 +02:00
Ömer Faruk Irmak
1ebde6d893
feat: introduce encode stage ( #822 )
...
* Reapply "feat: introduce encode stage (#814 )"
This reverts commit 0b6cdbdbe2 .
* reintroduced nullifying txnQueue
2024-06-13 09:46:41 +03:00
Péter Garamvölgyi
69aae68b2f
feat: delay Curie fork on mainnet by 1 day ( #821 )
2024-06-12 11:37:36 +02:00
Péter Garamvölgyi
0b6cdbdbe2
Revert "feat: introduce encode stage ( #814 )"
...
This reverts commit 84cf1b58ae .
2024-06-12 11:26:41 +02:00
Ömer Faruk Irmak
84cf1b58ae
feat: introduce encode stage ( #814 )
2024-06-12 11:11:48 +03:00
Péter Garamvölgyi
42fb4fba66
ci: use go go-1.21 during docker build ( #818 )
...
feat: use go go-1.21 during docker build
2024-06-11 13:48:51 +02:00
Péter Garamvölgyi
77f358fe77
feat: schedule Curie hard fork on Scroll and Scroll Sepolia ( #808 )
...
* feat: schedule Curie hard fork on Scroll and Scroll Sepolia
* update fork blocks
2024-06-11 13:17:16 +02:00
Ömer Faruk Irmak
e34a8cf79b
feat(prometheus): collect timer.Total() ( #817 )
...
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2024-06-11 13:12:12 +02:00
Zhang Zhuo
16cbc9a754
Chore: upgrade libzkp v0.10.6 ( #816 )
...
* chore(libzkp): upgrade to v0.10.6, reject txs with new opcodes
* chore: auto version bump [bot]
---------
Co-authored-by: Thegaram <Thegaram@users.noreply.github.com>
2024-06-11 12:49:41 +02:00
Ömer Faruk Irmak
e2becce6a1
fix: bump zktrie to 0.8.4 ( #809 )
2024-06-07 16:04:25 +03:00
Ömer Faruk Irmak
8bd2a16eb6
refactor(ccc): allow go side to construct a rust trace from json ( #807 )
2024-06-07 15:43:07 +03:00
Ömer Faruk Irmak
dc57ae2468
fix: account for the artificially added delay in commit stage ( #806 )
...
* fix: account for the artificially added delay in commit stage
* linter
* chore: auto version bump [bot]
---------
Co-authored-by: omerfirmak <omerfirmak@users.noreply.github.com>
2024-06-07 09:39:05 +02:00
Ömer Faruk Irmak
ccf6321b92
feat: allow trie prefetch ( #795 )
...
* allow prefetch
* chore: auto version bump [bot]
* chore: auto version bump [bot]
---------
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
Co-authored-by: Thegaram <Thegaram@users.noreply.github.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2024-06-06 22:20:56 +08:00
Jonas Theis
c2d7bd8935
feat: implement RIP-7212/EIP-7212 ( #798 )
...
Implement RIP-7212/EIP-7212 according to reference implementation at https://github.com/ulerdogan/go-ethereum/pull/1
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2024-06-06 13:40:37 +02:00
Ömer Faruk Irmak
d0860229c2
fix: avoid accidentally sharing a tracer between goroutines ( #768 )
...
Avoid accidentally sharing a tracer between goroutines
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2024-06-05 17:55:05 +03:00
HAOYUatHZ
6229ef11da
refactor(config): refactor some chainConfig ( #754 )
...
* refactor(config): refactor some chainConfig
* update
2024-06-05 21:28:41 +08:00
Péter Garamvölgyi
81074f58d8
feat: implement eth_getBlockReceipts ( #796 )
...
* internal/ethapi: implement eth_getBlockReceipts (#27702 )
* chore: auto version bump [bot]
* chore: auto version bump [bot]
---------
Co-authored-by: Delweng <delweng@gmail.com>
Co-authored-by: Thegaram <Thegaram@users.noreply.github.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Co-authored-by: Ömer Faruk Irmak <omerfirmak@gmail.com>
Co-authored-by: omerfirmak <omerfirmak@users.noreply.github.com>
2024-06-05 15:19:57 +02:00
colin
60bbfc1c2c
fix(ci): make geth ( #801 )
...
* fix(ci): make geth
* fix typo
* revert CI changes
* fix
2024-06-05 19:41:52 +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
7c74239e49
fix: mockccc geth Dockerfile ( #797 )
...
add back compile
2024-06-05 13:47:32 +08:00
Jonas Theis
b9d3c72e0d
feat: congestion-aware gas price oracle ( #790 )
...
* Implement functionality to reset gas price / suggested tip to minimal value when there's no congestion
* Add flags to configure congestion value and initialize gas price oracle accordingly
* Fix and add tests to make sure GPO works as expected depending on pre- or post-Curie (EIP 1559) upgrade
* Apply review suggestions
* chore: auto version bump [bot]
---------
Co-authored-by: omerfirmak <omerfirmak@users.noreply.github.com>
2024-06-04 17:05:58 +08:00
Péter Garamvölgyi
9ec83a509a
fix: use correct encoding for L1 data fee of EIP2718 transactions ( #793 )
...
* fix: use correct encoding for L1 data fee of EIP2718 transactions
* add tests
* lint
* Update rollup/fees/rollup_fee.go
Co-authored-by: Ömer Faruk Irmak <omerfirmak@gmail.com>
---------
Co-authored-by: Ömer Faruk Irmak <omerfirmak@gmail.com>
2024-06-03 16:24:03 +02:00
Péter Garamvölgyi
8c7491ae1e
feat: update gas-oracle contract bytecode ( #792 )
...
* feat: update gas-oracle contract bytecode
* remove leading 0x
2024-06-03 10:30:59 +02:00
Ömer Faruk Irmak
36d7325ea1
fix: make commit retry logic selective ( #788 )
2024-05-31 12:05:36 +03:00
colin
ca1db84d75
build: fix Dockerfile of mockccc geth ( #787 )
...
ci: fix Dockerfile of mockccc geth
2024-05-30 14:50:38 +02:00
Ömer Faruk Irmak
a43879b738
feat: allow non-ccc pipelines ( #781 )
2024-05-30 14:59:37 +03:00
colin
aae829c406
feat(ccc): revert libzkp version back to v0.10.5 ( #785 )
...
* Revert "upgrade libzkp to v0.11.0rc2 (#773 )"
This reverts commit 522882c4cdc8c90484ce40d4f62ab6d1ab73bbf5.
* chore: auto version bump [bot]
* chore: auto version bump [bot]
* add zktrie back in make geth
* trigger CI
* Revert "trigger CI"
This reverts commit 9f329eed0ad5368fb258043420426330ab9914cc.
---------
Co-authored-by: HAOYUatHZ <HAOYUatHZ@users.noreply.github.com>
Co-authored-by: colinlyguo <colinlyguo@users.noreply.github.com>
2024-05-30 15:02:40 +08:00
Ömer Faruk Irmak
094a67a179
fix: use a named deadline timer in CCC stage ( #782 )
2024-05-30 09:46:05 +03:00
colin
ab349d6443
ci: fix make geth ( #786 )
...
* fix CI
* trigger CI
* add sudo
* use absolute path
* remove libzktrie
* revert CI change
2024-05-30 14:45:13 +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
Ömer Faruk Irmak
e6cc960f2f
fix: properly release pipeline stages ( #783 )
2024-05-29 23:46:03 +03:00
semgrep.dev on behalf of @spilehchiha
34162effbc
Add Semgrep CI
2024-05-28 20:46:11 +00:00
semgrep.dev on behalf of @spilehchiha
d81a5387b4
Add Semgrep CI
2024-05-28 19:08:07 +00:00
semgrep.dev on behalf of @spilehchiha
4f9d34b3a4
Add Semgrep CI
2024-05-28 18:57:42 +00:00
HAOYUatHZ
760f234a1a
trie: fix two issues in trie iterator ( #24539 ) ( #778 )
...
* trie: fix two issues in trie iterator (#24539 )
* trie: fix memory leak in trie iterator
In the trie iterator, live nodes are tracked in a stack while iterating.
Popped node states should be explictly set to nil in order to get
garbage-collected.
* trie: fix empty trie iterator
* fix lint
* chore: auto version bump [bot]
---------
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
Co-authored-by: HAOYUatHZ <HAOYUatHZ@users.noreply.github.com>
2024-05-28 22:07:38 +08:00
Péter Garamvölgyi
bfe803001b
feat: update L1 data fee in Curie hard fork ( #755 )
...
* update fee calculation
* add missing GPO slots to trace
* add placeholder for contract update logic
* nit
* update fee calculation
* update formula
* update GPO slots
* update L1GPO bytecode
* apply Curie in new worker
* move bytecode to config
* create an empty block for curie hard fork
* initialize L1GasPriceOracle storage slots
* add comments
* add test
* add IsCurie to traces and tests
* group GPO storage slots into a struct
* update unit test
* chore: auto version bump [bot]
* trigger ci
* update bytecode
* remove leading 0x
* update comments
* include rollup fee tests in CI
---------
Co-authored-by: Ömer Faruk Irmak <omerfirmak@gmail.com>
Co-authored-by: Thegaram <Thegaram@users.noreply.github.com>
2024-05-28 14:12:39 +02:00
Ömer Faruk Irmak
9f961ddc71
feat: reduce the number of samples in lifetimeTimer ( #777 )
2024-05-28 13:57:18 +03:00
Ömer Faruk Irmak
89ff451c77
fix: make sure building of pending blocks don't have any lasting sideaffects ( #779 )
2024-05-28 12:54:36 +03:00
Ömer Faruk Irmak
b9919a572a
fix: make consensus engine wait for a bit before giving up on worker ( #774 )
...
and if it happens despite the wait, let worker retry
2024-05-27 19:44:40 +03:00
Ömer Faruk Irmak
dd7f747754
feature: keep track of and export total time observed by a timer ( #772 )
2024-05-27 09:46:09 +03:00
Ömer Faruk Irmak
9b4a779104
feat: sanity check locally built blocks via local consensus engine ( #767 )
...
and make the entire commit flow synchronous
2024-05-24 10:12:37 +03:00