Commit graph

14741 commits

Author SHA1 Message Date
Jonas Theis
0c6436db80
fix: ethclient tests (#968)
* fix: TestEthClient/StatusFunctions

* fix: TestEthClient/CallContract race condition with pending block

* fix: TestEthClient/CallContract race condition with pending block

---------

Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2024-08-09 12:45:41 +08:00
HAOYUatHZ
3cc9d0e54e
chore(deps): bump pebble db to official release (#966) 2024-08-08 14:00:17 +08:00
Péter Garamvölgyi
959f09d4f1
refactor: remove Scroll Alpha configurations (#965) 2024-08-07 23:21:05 +08:00
HAOYUatHZ
ddf94b3e5a
reduce number of heap allocations in tracing (#958) 2024-08-02 16:49:39 +08:00
HAOYUatHZ
58ed1a2a3b
fix: Check L1DataFee in txpool promoteExecutables and demoteUnexecutables (#948)
fix: Check L1DataFee in txpool promoteExecutables and demoteUnexecutables (#627)

* Check L1DataFee in txpool promoteExecutables

* bump version

* implement L1 data fee in demoteUnexecutables as well

* Update core/tx_list.go



* Update core/tx_pool.go



* feat: consider l1 data fee in txpool costcap (#681)

* feat(txpool): consider l1 data fee in costcap

* fix CI

* simplify logic

* remove one db read op

* bump version

---------

Co-authored-by: vyzo <vyzo@hackzen.org>
Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
Co-authored-by: georgehao <haohongfan@gmail.com>
2024-08-02 14:54:13 +08:00
Jonas Theis
15e380d0dd
fix: TestGraphQLBlockSerialization (#957) 2024-08-02 11:54:13 +08:00
HAOYUatHZ
8616fc2522
sync GPO changes (#954)
* 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>

* fix eth/gasprice/gasprice_test.go

* minor

* fix(GPO): min suggested tip cap if there's congestion to avoid filtering through `DefaultIgnorePrice` (#883)

* fix tests

* fix tests

---------

Co-authored-by: Jonas Theis <4181434+jonastheis@users.noreply.github.com>
Co-authored-by: omerfirmak <omerfirmak@users.noreply.github.com>
2024-08-01 21:41:51 +08:00
HAOYUatHZ
536603a85d
update core/types/ transaction_test.go (#953)
update core/types/transaction_test.go

Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2024-08-01 20:45:14 +08:00
HAOYUatHZ
17acae881a
defer txpool reorg until worker fetches txns for the next block (#944)
* feat: defer txpool reorg until worker fetches txns for the next block (#905)

* fix

---------

Co-authored-by: Ömer Faruk Irmak <omerfirmak@gmail.com>
2024-08-01 14:19:44 +08:00
Jonas Theis
c37f493850
fix(internal/ethapi): tests (#945)
* fix: TestSetFeeDefaults

* fix: TestRPCMarshalBlock, TestRPCGetBlockOrHeader, TestRPCGetTransactionReceipt, TestRPCGetBlockReceipts

* fix: TestTransaction_RoundTripRpcJSON, TestTransactionBlobTx

* improve

---------

Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Co-authored-by: HAOYUatHZ <haoyu@protonmail.com>
2024-08-01 11:48:30 +08:00
Jonas Theis
4a4f15ac5a
fix(eth/filters): tests (#936)
* fix: set UseZktrie: true so that it is used by default in all tests

* fix: TestFilters test

* fix: TestPendingTxFilterFullTx test due to nil pointer

---------

Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2024-08-01 11:08:06 +08:00
HAOYUatHZ
5cd3c9d3b9
feat(prometheus): collect timer.Total() (#950)
feat(prometheus): collect timer.Total() (#817)

Co-authored-by: Ömer Faruk Irmak <omerfirmak@gmail.com>
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2024-08-01 10:41:15 +08:00
HAOYUatHZ
05108d108c
feature: keep track of and export total time observed by a timer (#949)
feature: keep track of and export total time observed by a timer (#772)

Co-authored-by: Ömer Faruk Irmak <omerfirmak@gmail.com>
2024-08-01 10:35:29 +08:00
HAOYUatHZ
f6a030ccad
feat(worker): disable enforceTips when fetching pending transactions (#947) 2024-07-31 21:23:00 +08:00
HAOYUatHZ
e9fec8fcb4
update github CI (#946)
* feat: Configure l2geth Docker pipeline to push latest tag (#831)

* push latest tag

* push latest tag on release published

* use metadata-action to define tags

* test

* push ref name on push tag or push latest tag on publishing release

* update

---------

Co-authored-by: Nazarii Denha <dengaaa2002@gmail.com>
2024-07-31 21:19:45 +08:00
colin
3d964d6e9b
update rollup verifier (#930)
* update l2geth verifier

* update verifier

* update

* remove old structures

* decrease diff

* decrease diff

* fix image build error

* update dependency

* update c-kzg-4844 dependency

* clean up

* clean up

---------

Co-authored-by: HAOYUatHZ <haoyu@protonmail.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2024-07-30 22:12:39 +08:00
HAOYUatHZ
4d3f98403a
ci: use go go-1.21 during docker build (#942)
ci: use go go-1.21 during docker build (#818)

feat: use go go-1.21 during docker build

Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2024-07-30 18:35:08 +08:00
HAOYUatHZ
c0d20514db
feat: implement RIP-7212/EIP-7212 (#943)
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: Jonas Theis <4181434+jonastheis@users.noreply.github.com>
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2024-07-30 18:32:06 +08:00
Jonas Theis
f8bfb3aa5e
fix(GPO): tests (#938)
* fix(GPO): tests

* fix `newTestBackend`

* improve

---------

Co-authored-by: HAOYUatHZ <haoyu@protonmail.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2024-07-30 13:28:30 +08:00
HAOYUatHZ
c6b46fb268
fix: treat JSON errors as CCC error (#940)
fix: treat JSON errors as CCC error (#922)

Co-authored-by: Ömer Faruk Irmak <omerfirmak@gmail.com>
2024-07-29 19:15:12 +08:00
HAOYUatHZ
ac044caa1b
feat(miner): account fetch limit (#939)
* feat(worker): try to limit the number of txns miner has to deal with (#745)

to reduce the effect of having a huge backlog on performance

* fix(worker): set default account fetch limit (#756)

* fix

* update miner/worker.go

* fix

---------

Co-authored-by: Ömer Faruk Irmak <omerfirmak@gmail.com>
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2024-07-29 19:07:43 +08:00
Mengran Lan
c86a215b04
feat(metrics):migrate metrics from develop branch (#910)
migrate metrics from develop

Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2024-07-29 16:07:31 +08:00
Jonas Theis
e6705cea99
skip eth/catalyst tests (#937)
* skip eth/catalyst tests

* Update api_test.go

---------

Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2024-07-29 13:36:01 +08:00
colin
989ecb2133
chore(dep): upgrade go kzg 4844 (#932)
* chore(dep): upgrade go kzg 4844

* Update kzg4844_ckzg_cgo.go

---------

Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2024-07-27 12:08:52 +08:00
HAOYUatHZ
05148de519
clean outdated trace fields (#928)
* update eth/tracers/logger/logger_trace.go

* update types

* update `StructLog` logic

* update rollup/tracing/tracing.go
2024-07-26 15:30:15 +08:00
HAOYUatHZ
07fe67a904
fix: scroll greeting message (#927) 2024-07-25 12:02:39 +08:00
HAOYUatHZ
ad4d842726
feat: allow trie prefetch (#926) 2024-07-25 11:55:12 +08:00
HAOYUatHZ
c293daa83c
replace package name (#924)
* replace package name

* clean up
2024-07-25 08:26:20 +08:00
HAOYUatHZ
7b10424e16
fix(libzkp): disable recursion_limit for rust trace deserialization (#923)
fix(ccc): disable_recursion_limit for rust trace deserialization
2024-07-24 22:57:15 +08:00
HAOYUatHZ
e113804bfc
feat: pipeline worker (#907)
* comment out miner/worker.go

* add miner/scroll_worker.go

* rename package

* add rollup/pipeline/pipeline.go

* rename package

* some renamings

* some fixes

* some fixes

* some fixes

* some fixes

* some fixes

* some fixes

* some fixes

* some fixes

* some cleaning

* some fixes

* some fixes

* remove `RelaxedPeriod`

* some fixes

* try `orderedTransactionSet`

* try lazy

* try lazy

* update miner/worker_test.go

* update miner/worker_test.go

* feat: implement relaxed period in clique

* fix `parent.Number`

* fix coinbase

* fix "create block"

* fix "updateSnapshot"

* make consensus engine wait for a bit before giving up on worker

* fix error handling
2024-07-24 21:31:25 +08:00
HAOYUatHZ
127ace6083
revert hexutil.Decode (#665)
Co-authored-by: Jonas Theis <4181434+jonastheis@users.noreply.github.com>
2024-07-23 11:06:24 +08:00
HAOYUatHZ
22d9de3d46
remove SetRecommitInterval API (#909)
* remove `SetRecommitInterval`

* update miner/worker_test.go

* update
2024-07-18 11:35:51 +08:00
HAOYUatHZ
9e8b3f48e5
move WithTimer function (#908)
move `WithTimer` method
2024-07-18 10:41:06 +08:00
HAOYUatHZ
ac2f573c4f
update ccc (#906)
* upgrade ccc

* upgrade Dockerfile
2024-07-17 21:36:40 +08:00
HAOYUatHZ
74578fa06e
refactor: remove unused storage traces (#902)
refactor: remove unused storage traces  (#819)

Co-authored-by: Ömer Faruk Irmak <omerfirmak@gmail.com>
2024-07-15 16:31:11 +08:00
HAOYUatHZ
fc5763e4bf
ChainConfig: update DescartesBlock to DarwinTime (#900)
update chainconfig: DescartesBlock -> DarwinTime
2024-07-12 14:27:21 +08:00
HAOYUatHZ
2ec2bc6b2c
rename circuitCapacityReached to circuitCapacityOrBlockTimeReached (#899) 2024-07-12 12:54:48 +08:00
HAOYUatHZ
a84baf6bc3
fix(tracing): fix error handling in fillBlockTrace (#890) (#898)
* 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-12 11:37:21 +08:00
HAOYUatHZ
1c9cc6d621
feat: add scroll_api (#893)
* update eth/api.go

* update internal/web3ext/web3ext.go

* fix

* update eth/backend.go

* update ethclient/ethclient.go
2024-07-10 13:25:51 +08:00
HAOYUatHZ
65af7ee9e5
feat: update L2 base fee formula (#892)
feat: update L2 base fee formula (#891)

* feat: update L2 base fee formula

* update test tx hashes

Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2024-07-10 09:36:29 +08:00
HAOYUatHZ
f777318776
sync l1datafee change for curie (#888)
* update rollup/rcfg/config.go

* update consensus/misc/curie.go

* update rollup/fees/rollup_fee_test.go

* update rollup/fees/rollup_fee.go

* update rollup/tracing/tracing.go

* update tests/state_test_util.go

* update light/txpool.go

* fix some

* update eth/tracers/internal/tracetest/prestate_test.go

* update eth/tracers/api.go

* update core/chain_makers.go

* update core/state_processor.go

* update cmd/evm/internal/t8ntool/execution.go

* update txpool

* update ethclient/ethclient_test.go

* update ethclient/gethclient/gethclient_test.go

* update core/blockchain_test.go

* update miner/worker.go

* update txpool 2
2024-07-09 20:45:54 +08:00
HAOYUatHZ
5e255cf5b1
fix(traces): several tracing fixes (#830)
* fix(trace): add `extraData`

* fix(trace): fix `StructLogger`'s `CaptureState`
2024-07-08 17:13:44 +08:00
HAOYUatHZ
72577219c0
fix fee logic in TransitionDb (#887)
update fee_vault logic in TransitionDb
2024-07-08 17:08:22 +08:00
HAOYUatHZ
b5dee527c4
fix l2trace TransactionData (#882)
update `TransactionData` type
2024-07-04 16:03:19 +08:00
HAOYUatHZ
2f116b3bc5
update MakeSigner (#881) 2024-07-04 14:19:16 +08:00
HAOYUatHZ
0892822b8c
sync blob tx encoding/decoding fixes (#879)
* feat(transactions): support blob tx only in encoding/decoding (#626)

* draft change

* fix CI

* remove CancunBlock params and change cancunSigner to londonSignerWithEIP4844

* support blob transactions in receipt

* trigger ci

* bump version

* feat(ethclient & gethclient): support blob transaction (#661)

* feat: support blob transaction

* sync tx encoding/decoding

* more fixes

* add uint236 support in rlp encoding decoding

* revert a format change

* trigger ci

---------

Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
2024-07-04 11:33:23 +08:00
HAOYUatHZ
9c7381669e
fix(traces): deletion proof apply wrong storage value from structLogger (#870)
cherry pick 4e3bf2f
2024-07-01 11:05:50 +08:00
HAOYUatHZ
86c37a9075
fix some tests (#857)
* fix cmd/geth/consolecmd_test.go

* fix testBackend

* fix `TestGolangBindings` & `TestAdjustTime`

* update js_tracer tests

* refactor
2024-06-27 22:30:08 +08:00
HAOYUatHZ
b6a17e33f1
fix some trie tests (#833)
* update `newTrieReader`

* fix `TestGolangBindings` & `TestAdjustTime`

* fix trie tests

* evert "fix `TestGolangBindings` & `TestAdjustTime`"

This reverts commit 4d0c60103fbda5061df36ac031622eb05a10e0d6.
2024-06-27 21:09:20 +08:00
HAOYUatHZ
a83c05c9c4
sync rollup_sync_service fixes (#860)
* 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>

* fix(rollup sync service): remove syscall.Kill (#636)

* fix(rollup sync service): remove syscall.Kill

* bump version

* fix(api-backend): disable finalized tag when rollup verify is disabled (#722)

---------

Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2024-06-26 17:38:00 +08:00