Ö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
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
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
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
c7990a3eb1
feat(worker): pipeline block building ( #735 )
2024-05-21 16:11:06 +03:00
Ömer Faruk Irmak
12871c7745
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
2024-05-13 09:20:55 +03:00
Péter Garamvölgyi
c3b7678ccc
fix: temporarily disable string encoding for new opcodes ( #737 )
...
feat: temporarily disable string encoding for new opcodes
2024-05-02 17:46:11 +08:00
Nazarii Denha
3592139384
(feat)all: add EIP-1153 - transient storage ( #721 )
...
* all: implement EIP-1153 transient storage (#26003 )
Implements TSTORE and TLOAD as specified by the following EIP:
https://eips.ethereum.org/EIPS/eip-1153
https://ethereum-magicians.org/t/eip-1153-transient-storage-opcodes/553
Co-authored-by: Sara Reynolds <snreynolds2506@gmail.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
* core/vm: move TSTORE,TLOAD to correct opcode nums (#27613 )
* core/vm: move TSTORE,TLOAD to correct opcode nums
* core/vm: cleanup
* fix tests, rename
* goimports
* enable 1153 at Curie
* bump version
* comment fix
* improve test
* version
* testchainconfig
* fix another test that affects newly added
* fix previous test to clenaup after
---------
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Sara Reynolds <snreynolds2506@gmail.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
2024-04-28 15:59:26 +08:00
Nazarii Denha
005db0370e
(feat)core/vm: Add Upgrade #4 fork configuration ( #698 )
...
* Add Upgrade #4 fork configuration
* bump version
* chore: auto version bump [bot]
* trigger ci
---------
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
Co-authored-by: Thegaram <Thegaram@users.noreply.github.com>
2024-04-24 18:01:47 +08:00
Nazarii Denha
ecca1069d3
(feat) core/vm: implement EIP-5656, mcopy opcode ( #697 )
...
* core/vm: implement EIP-5656, mcopy instruction (#26181 )
Implements [EIP 5656](https://eips.ethereum.org/EIPS/eip-5656 ), MCOPY instruction, and enables it for Cancun.
---------
Co-authored-by: Martin Holst Swende <martin@swende.se>
* update version
* goimports
---------
Co-authored-by: Charles Cooper <cooper.charles.m@gmail.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2024-04-24 17:41:50 +08:00
Péter Garamvölgyi
0252f85816
feat: add block time metric ( #707 )
...
* feat: add block time metric
* chore: auto version bump [bot]
* trigger ci
---------
Co-authored-by: Thegaram <Thegaram@users.noreply.github.com>
2024-04-18 11:25:03 +08:00
georgehao
678a9fcb69
feat: add more state_transition, worker, and tracing metrics ( #700 )
...
* feat: add transactions len metrics of block processer
* feat: (worker): add metrics
* feat: add commitTransaction loops
* feat: add metrics to rollup tracing
* feat: add metrics to getTxResult
* feat: bump version
* add state revert metric timer
* feat: add commitNewWrok metrics
* feat: fix comments
* feat: remove the consume part metrics
* feat: update
* Apply suggestions from code review
Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
* feat: update
* feat: address comments
* chore: auto version bump [bot]
* feat: bump version
* add tests
* Revert "add tests"
This reverts commit 175d544a68fc964dcc062b46c1a010ed821a0996.
---------
Co-authored-by: Ömer Faruk Irmak <omerfirmak@gmail.com>
Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
Co-authored-by: georgehao <georgehao@users.noreply.github.com>
Co-authored-by: colinlyguo <colinlyguo@scroll.io>
2024-04-16 16:05:21 +08:00
georgehao
4c2b567116
fix(txpool): rollback false optimization ( #694 )
...
* feat: add transactions len metrics of block processer
* feat: rollback false optimize
* feat: update
* feat: bump version
2024-04-08 10:13:43 +08:00
HAOYUatHZ
0bccb7bc50
fix(state): fix iterativeDump.OnAccount ( #649 )
...
* fix `iterativeDump.OnAccount`
* chore: auto version bump [bot]
* chore: auto version bump [bot]
---------
Co-authored-by: HAOYUatHZ <HAOYUatHZ@users.noreply.github.com>
2024-04-05 11:48:09 +08:00
Péter Garamvölgyi
5faeeaaf62
feat: add metrics to block validation ( #677 )
...
* feat: add metrics to block validation
* more metrics
* bump version
2024-03-27 16:36:08 +00:00
vyzo
d1e4b59eec
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
Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
* Update core/tx_pool.go
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
* 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: 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-03-27 15:31:51 +00:00
Péter Garamvölgyi
0f0cd99f7a
feat: update upcoming fork names ( #680 )
...
* feat: update upcoming fork names
* bump version
* Apply suggestions from code review
Co-authored-by: Nazarii Denha <dengaaa2002@gmail.com>
* bump version
---------
Co-authored-by: Nazarii Denha <dengaaa2002@gmail.com>
2024-03-26 14:41:32 +00:00
Péter Garamvölgyi
411889ef92
fix: ensure L1 messages are stored in db consistently ( #679 )
...
* fix: ensure L1 messages are stored in db consistently
* check db iterator errors
2024-03-26 14:02:03 +00:00
colin
4553f5f269
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
2024-03-14 17:51:30 +08:00
Péter Garamvölgyi
ccec84ce63
feat: re-enable EIP-1559 in Banach hard fork ( #634 )
...
* feat: re-enable EIP-1559 in Banach hard fork
* enable BASEFEE opcode
* do not double gas limit on Banach fork block
* do not burn base fee
* update base fee calculation logic
* fix gas price oracle
* fix ethapi backend
* typo
* reorder worker code
* update genesis base fee
* add MaximumL2BaseFee
* add base fee metrics
* handle nil base fee
* revert state-transition change
* bump version
* remove TODO
* update test
* fix typo
* fix typo
* update traces
* fix test
* update london to banach
* handle error
* bump version
* bump version
2024-03-11 13:57:52 +00:00
colin
a807a41fd1
fix(txJSON): L1 message type MarshalJSON ( #630 )
...
* fix(txJSON): L1 message type MarshalJSON
* address comments
* bump version
* trigger ci
* bump version
* bump version
2024-03-05 20:12:10 +08:00
georgehao
06a21f327d
feat: add transactions len metrics of block processer ( #650 )
...
* feat: add transactions len metrics of block processer
* feat: bump version
2024-03-04 10:21:05 +08:00
georgehao
bfa7abcc50
feat: add metric to evm call ( #646 )
...
* feat: add metric to evm
* feat: bump version
2024-02-28 09:45:38 +08:00
Nazarii Denha
ee381b2451
feat: setup configuration for upcoming hard fork and re-enable sha256 precompile ( #562 )
...
* setup configuration for upcoming hard fork
* bump version
* bump version
* enable sha256
* rename to kepler
* update
* update lint
* rename Kepler to Banach
* goimports
* reorder precompile forks
* typo
---------
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2024-02-09 13:46:33 +01:00
Péter Garamvölgyi
7e3a7ae744
ci: fix goimports lint in CI ( #628 )
...
* ci: fix goimports lint in CI
* use different go versions for goimports and go mod tidy
* goimports
2024-02-09 13:25:59 +01:00
colin
ae7cbae19c
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
2024-02-01 18:35:12 +01:00
colin
d86b42cdaa
fix(ethclient): support new cancun fields in header ( #623 )
2024-01-31 09:04:56 +08:00
HAOYUatHZ
88349c600d
feat: add mux tracer for native call tracer and native prestate tracers ( #615 )
...
* hack to use native tracers
* update
* fix
* add prestate
* fix marshal
* format
* draft
* move
* separate `MuxTracer`
* fix
* update miner/worker.go
* update api
* rename
* remove
* bump go version
* bump golangci
* goimports lint
* fix tests
* minor
* clean up
* fix tests
* sync error handling
* bump go version in Dockerfiles
* bump version
* lint: disable `goconst` & `goimports`
* bump version again
* add comments
---------
Co-authored-by: lightsing <light.tsing@gmail.com>
2024-01-18 14:58:27 +08:00
colin
fc06826a04
fix(receipt): L1 message type tx RLP decoding ( #616 )
...
* fix(receipt): L1 message type tx RLP decoding
* another
2024-01-15 15:07:41 +08:00
colin
219b84e1af
fix(txpool): revert duplicated l1 data fee check ( #612 )
...
* Revert "fix(tx-pool): consider L1 data fee in validateTx"
This reverts commit 0a5c04b85d0f8b509542306894c03bd3feff65bd.
* simplify veriftfee
* bump version
* address comments
* keep the original behavior
* fix again
* nit
* tweak comments
2024-01-08 20:25:46 +08:00
colin
5b7079b3a4
fix(tx-pool): consider L1 data fee in validateTx ( #609 )
...
* fix(tx-pool): consider L1 data fee in validateTx
* bump version
2023-12-26 10:12:26 +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
HAOYUatHZ
38a3a9c919
fix(tracing): fix getTxResult returned error format ( #561 )
...
* fix(tracing): fix `getTxResult` returned error format
* Update version.go
2023-11-30 08:51:11 +08:00
Zhang Zhuo
9f143b47b2
feat (libzkp-v0.9.8): recordStorageDetail even when LogConfig.DisableStorage == true ( #564 )
...
* trace: recordStorageDetail even when LogConfig.DisableStorage == true
* Set `DisableStorage` to true.
* Update libzkp to zkevm-circuits `feat/remove-step-storage-from-trace` branch.
* Add `strict-ccc` feature to libzkp.
* Upgrade libzkp to use prover `v0.9.8`.
* Update params version.
* Update params version.
---------
Co-authored-by: Steven Gu <asongala@163.com>
2023-11-22 14:44:08 +08:00
DongXi Huang
d537451863
refactor(evm): Remove duplicate defined variables ( #559 )
...
Refactor: Remove duplicate defined variables
2023-11-12 14:17:37 +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
HAOYUatHZ
fcb3e1768d
refactor(tracing): refactor wrappedProof ( #536 )
2023-10-18 00:31:29 +08:00
Péter Garamvölgyi
cfd9de0f92
feat: update network configuration ( #533 )
2023-10-08 16:03:41 +02:00
Péter Garamvölgyi
b3d0f164ea
feat: add new configuration ( #526 )
...
* add new configuration
* update
* update
* bump version
* remove todo
2023-10-08 13:29:09 +02:00
Péter Garamvölgyi
68697b0fee
fix: use non-overlapping DB prefix for L1 messages ( #532 )
...
* fix: use non-overlapping db prefix for L1 messages
* bump version
2023-10-04 19:28:26 +02:00
Péter Garamvölgyi
df41822bcf
fix: re-enable CCC light mode ( #530 )
...
fix: re-enable light mode
2023-10-04 14:01:55 +02:00
Steven
7cebee85a8
fix(libzkp): upgrade libzkp to v0.9.4 and add ccc SetLightMode ( #522 )
...
* Upgrade to prover `v0.9.4`, and add `SetLightMode` function.
* set ccc light_mode = false for validator
* fix
* bump version
---------
Co-authored-by: Zhang Zhuo <mycinbrin@gmail.com>
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2023-10-03 15:42:54 +02:00
Péter Garamvölgyi
751dbda234
feat: add metrics in L1 message iterator ( #527 )
...
* feat: add metrics in L1 message iterator
* add L1 message size metric
2023-10-01 14:48:59 +02:00
Péter Garamvölgyi
fe8232a40f
fix(worker): short-circuit l1 message iteration ( #525 )
...
* fix(worker): short-circuit l1 message iteration
* Update core/rawdb/accessors_l1_message_test.go
Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
---------
Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
2023-09-29 21:16:37 +02:00
Péter Garamvölgyi
93a9497d75
refactor(worker): order L1 messages by queue index ( #512 )
...
* refactor(worker): order L1 messages by queue index
* bump version
* bump version
2023-09-18 10:34:51 +02:00
maskpp
417dd02827
fix(sdk): accept blocks where coinbase is null (e.g. pending block) ( #509 )
...
* fix error(when get pengding block) coinbase address is null
* fix comments
2023-09-13 17:00:17 +08:00
Péter Garamvölgyi
9c1433b62a
fix(trace): use correct roots in trace of block with one transaction ( #508 )
...
fix: use correct roots in trace of block with one transaction
2023-09-11 12:13:50 +02:00
HAOYUatHZ
dade96d416
fix(rawdb, api): fix rawdb.writeSkippedTransaction & api.GetSkippedTransaction ( #503 )
...
* fix(rawsdb): fix `writeSkippedTransaction`
* Update version.go
* minor
* clean up
2023-09-07 15:35:04 +08:00
HAOYUatHZ
0b6c3be40d
feat(api/rawdb): allow storing traces for skipped txs ( #500 )
2023-09-05 11:03:15 +08:00