Commit graph

623 commits

Author SHA1 Message Date
Péter Garamvölgyi
dfd4039be7
feat: schedule Darwin hard fork (#963) 2024-08-05 09:13:29 +02:00
Ömer Faruk Irmak
2ba5ea3058
Revert "refactor: reduce number of heap allocations in tracing (#952)" (#959)
This reverts commit b84f4ed6f8.
2024-08-02 21:59:50 +08:00
HAOYUatHZ
ee0410ec10
feat: update L2 base fee formula (#951)
* update `CalcBaseFee`

* update `TestCalcBaseFee`

* update `TestStateProcessorErrors`

* bump version

* update threshold
2024-08-02 10:09:33 +08:00
Ömer Faruk Irmak
b84f4ed6f8
refactor: reduce number of heap allocations in tracing (#952) 2024-08-01 14:52:43 +03:00
Ömer Faruk Irmak
51c7eee1e4
feat(clique): allow shadowforking a clique network (#828) 2024-08-01 12:11:00 +03:00
Ömer Faruk Irmak
9abdd5b9aa
feat: defer txpool reorg until worker fetches txns for the next block (#905) 2024-07-26 10:25:58 +03:00
georgehao
df3713e840
feat(libzkp):unbounded depth serde json (#920)
* feat: add transactions len metrics of block processer

* fix

* format

* chore: auto version bump [bot]

* remove unusd code

---------

Co-authored-by: georgehao <georgehao@users.noreply.github.com>
2024-07-24 11:59:30 +08:00
Péter Garamvölgyi
f2af32d3d5
fix: log Rust trace parsing error (#918)
* fix: log Rust trace parsing error

* fix
2024-07-24 01:47:47 +02:00
HAOYUatHZ
9ee6976fe5
fix(miner,rpc): fix updateSnapshot (#916)
* fix `updateSnapshot`

* fix

* chore: auto version bump [bot]

---------

Co-authored-by: HAOYUatHZ <HAOYUatHZ@users.noreply.github.com>
2024-07-23 22:22:51 +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
Zhang Zhuo
0cecc1986e
refactor(trace): clean outdated fields (#842)
* clean trace: remove ExtraData, disable prestateTracer, collect bytecodes in top level

* fix

* fix

* fix

* fix

* fix

* more cleanup

* more cleanup

* refactor(trace): clean outdated fields

* fix bytecodes in trace

* chore: auto version bump [bot]

* chore: auto version bump [bot]

* use hexutil.Bytes

---------

Co-authored-by: Ömer Faruk Irmak <omerfirmak@gmail.com>
Co-authored-by: omerfirmak <omerfirmak@users.noreply.github.com>
Co-authored-by: lispc <lispc@users.noreply.github.com>
2024-07-15 20:36:00 +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
Péter Garamvölgyi
0b5146bdef
feat(txpool): use GasFeeCapIntCmp to check min fee (#901)
* feat(txpool): use GasFeeCapIntCmp to check min fee

* fix test
2024-07-12 11:56:35 +02:00
HAOYUatHZ
55f70cc6e8
fix(tracing): fix error handling in fillBlockTrace (#890)
* fix(tracing): fix error handling in `fillBlockTrace`

* chore: auto version bump [bot]

* chore: auto version bump [bot]

---------

Co-authored-by: HAOYUatHZ <HAOYUatHZ@users.noreply.github.com>
2024-07-11 18:58:07 +08:00
Jonas Theis
8c7a3aed74
feat(txpool): StatsWithMinBaseFee (#884)
* feat(txpool): implement StatsWithMinBaseFee

* feat(gpo): use StatsWithMinBaseFee to filter out tx below the current blocks base fee

* feat(les/txpool): implement StatsWithMinBaseFee

* use flatten() (lowercase) to avoid copying of tx list

* chore: auto version bump [bot]

---------

Co-authored-by: jonastheis <jonastheis@users.noreply.github.com>
2024-07-10 11:10:58 +02:00
Jonas Theis
ae45e1230e
fix(GPO): min suggested tip cap if there's congestion to avoid filtering through DefaultIgnorePrice (#883) 2024-07-10 12:31:52 +08:00
Péter Garamvölgyi
f56dbb7c43
feat: update L2 base fee formula (#891)
* feat: update L2 base fee formula

* update test tx hashes
2024-07-09 12:54:00 +02: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
HAOYUatHZ
dcd0004376
fix(p2p): re-enable ENRUpdater (#869)
* feat: enable ENRUpdater

* chore: auto version bump [bot]

* chore: auto version bump [bot]

* chore: auto version bump [bot]

---------

Co-authored-by: HAOYUatHZ <HAOYUatHZ@users.noreply.github.com>
2024-07-05 16:59:44 +08:00
Péter Garamvölgyi
b8f086c1de
feat: update to ccc v0.11.4 (#872)
* update to v0.11.4

* chore: auto version bump [bot]

---------

Co-authored-by: Ömer Faruk Irmak <omerfirmak@gmail.com>
Co-authored-by: Thegaram <Thegaram@users.noreply.github.com>
2024-07-03 15:16:38 +02: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
Péter Garamvölgyi
418bc6f728
feat: rename next upgrade to Darwin (#863) 2024-06-26 14:54:36 +02:00
Ömer Faruk Irmak
50a6bc6f42
feat: make descartes a timestamp based fork (#852)
* feat: make descartes a timestamp based fork

* chore: auto version bump [bot]

---------

Co-authored-by: omerfirmak <omerfirmak@users.noreply.github.com>
2024-06-26 12:35:04 +08:00
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
Ö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
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
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
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
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
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
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
Ö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