Nazarii Denha
09c69b6076
implement PUSH0 ( #273 )
...
Co-authored-by: Péter Garamvölgyi <th307q@gmail.com>
2023-04-20 11:39:19 +02:00
HAOYUatHZ
11ff7a0648
refactor: rename L1FeeEnabled to FeeVaultEnabled ( #281 )
...
rename `L1FeeEnabled` to `FeeVaultEnabled`
2023-04-19 22:41:38 +08:00
georgehao
f71fc6794a
fix(api): fix debug_ API oom bug ( #284 )
...
* feat: fix oom bug
* feat: format import
* feat: remove unused code
* Update version.go
---------
Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2023-04-19 21:26:29 +08:00
HAOYUatHZ
b22944a621
Revert "Substitute secp256k1 library for the L1 version ( #22 )" ( #290 )
...
* Revert "Substitute secp256k1 library for the L1 version (#22 )"
This reverts commit 59df2d7ebb .
* goimports -local github.com/scroll-tech/go-ethereum -w .
* go mod tidy
2023-04-19 15:54:20 +08:00
Péter Garamvölgyi
d274ef1f93
Bump version v3.1.5 ( #289 )
...
bump version v3.1.5
2023-04-19 06:14:28 +02:00
Max Wolff
028acecb02
fix return type in tx receipt for l1fee type ( #254 )
...
* edit marshalling override
* goimports
* not required
* encode l1fee
---------
Co-authored-by: Péter Garamvölgyi <th307q@gmail.com>
2023-04-19 05:12:57 +02:00
Péter Garamvölgyi
49e755e334
Add Scroll bootnode config ( #261 )
...
* add Scroll bootnode config
* expose scroll networks on node CLI
* add alpha genesis config
* fix scroll genesis config
* update default sync mode
* address todos
* remove scroll staging network
* bump version
* update genesis config
* bump version
2023-04-19 04:40:52 +02:00
HAOYUatHZ
df1d37e097
refactor(config): consolidate scroll flags ( #262 )
2023-04-17 18:56:26 +08:00
HAOYUatHZ
909fe1d3ec
build(docker): update docker trigger tag prefix ( #259 )
2023-04-03 17:22:45 +08:00
HAOYUatHZ
c5ad2abe64
build(docker): auto docker push when pushing git tags ( #258 )
2023-04-03 15:45:55 +08:00
Péter Garamvölgyi
b986f1ea7b
feat(API): consider L1 fee in eth_call and eth_estimateGas ( #248 )
...
* consider L1 fee in eth_call and eth_estimateGas
* address comments
* consider l1fee in trace call
* nit
* fix bugs and add tests
* address comments
* bump version
2023-03-30 23:10:51 +08:00
Max Wolff
a74b35e86f
feat(api): add L1 fee to eth_getTransactionReceipt ( #244 )
...
* Update api.go
* fmt
* revert changes
* add l1fee to receipt in transaction processor
* decoder
* fmt
* fmt
* add encoding, test
* fmt
* removed duplicate l1 fee calc, added gen receipt
* remove dup l1feecalc
* lint
* add omitempty
* bump version
---------
Co-authored-by: Péter Garamvölgyi <th307q@gmail.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2023-03-28 09:08:57 +08:00
Péter Garamvölgyi
4da184ea60
feat(vm): disable EIP-3198 ( #250 )
...
* disable EIP 3198
* bump version
* trigger ci
2023-03-27 17:49:32 +08:00
HAOYUatHZ
127af384ed
build: update version ( #246 )
2023-03-21 10:04:20 +08:00
Ho
8665d3e011
feat(trace): add deletion proof into storage trace ( #245 )
...
* update zktrie, inducde proof with deletion
* Add deletion proof for stateDb
* fill deletionproofs
* lint
* proving more comment for parts prone to be confused
* simplify array appending
Co-authored-by: maskpp <maskpp266@gmail.com>
* bump zktrie version and fix issues
* add delproof into witgen
---------
Co-authored-by: maskpp <maskpp266@gmail.com>
2023-03-20 13:44:09 +08:00
maskpp
03b4de32b7
feat(trace): Add chainID and version fields in trace. ( #227 )
...
* Add ChainID and version.
* fix comments.
* Update params/version.go
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
* fix comments.
* Update version.go
---------
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2023-03-06 21:19:30 +08:00
maskpp
d1f9523b08
feat(build): Upgrade go version to 1.18 ( #241 )
...
* update go version
* update go version
* format code by goimports
* format code by goimports
* go mod tidy
* update go version
* update go version
* upgrade linter
* add exclude rule
* fix golangci exclude
---------
Co-authored-by: vincent <419436363@qq.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2023-03-06 13:32:39 +08:00
Ho
29e450264c
fix: error propagation in db layer of zktrie ( #238 )
...
* fix error propagation in db layer of zktrie
* goimports fixing
2023-03-06 13:17:41 +08:00
maskpp
018c2cca43
feat(snapshot): Close snapshot p2p protocol when using zktrie. ( #239 )
...
* Close snapshot p2p protocol when use zktrie.
* trigger ci
2023-03-06 12:26:17 +08:00
HAOYUatHZ
cfbb26922f
fix: improve "insufficient funds for l1fee" error msg ( #237 )
...
fix(l2geth): improve "insufficient funds for l1fee" error msg
2023-03-02 20:03:37 +08:00
HAOYUatHZ
4588569b63
feat: VerifyFee for sendTx and txpool.add ( #236 )
...
* init
* rework
* handle `LesApiBackend`
* fix tests
* add L1fee even for 0 gasPrice
* update comments
2023-03-02 16:38:43 +08:00
Péter Garamvölgyi
481ca91e34
fix: do not produce empty blocks when all transactions fail ( #235 )
2023-02-28 09:08:41 +01:00
maskpp
15f94b93ea
fix(trace): Fix l1Fee ( #234 )
...
Fix l1Fee
2023-02-24 14:04:25 +08:00
HAOYUatHZ
d91c8c799e
fix(l1fee): use int for CalculateL1Fee ( #231 )
...
* fix(l1fee): use floor for `mulByFloat`
* fix(l1fee): use int for `CalculateL1Fee`
* fix(l1fee): use int for `CalculateL1Fee`
* add `TestCalculateL1Fee` (#233 )
* update testcase
2023-02-24 09:25:49 +08:00
Haichen Shen
3c5f532ef3
fix: Add l1fee to the balanceCheck ( #229 )
...
Add l1fee to the balanceCheck
Co-authored-by: HAOYUatHZ <haoyu@protonmail.com>
2023-02-24 08:31:37 +08:00
HAOYUatHZ
96642f5be6
Revert "fix: revert block-on-demand (and use constant block time for … ( #226 )
...
Revert "fix: revert block-on-demand (and use constant block time for clique) (#193 )"
This reverts commit 5ca70bf3a2 .
2023-02-23 06:30:49 +08:00
Péter Garamvölgyi
3fcd77955e
fix GetTransactionReceipt crash when BaseFee is missing ( #224 )
2023-02-21 18:23:18 +01:00
Nazarii Denha
310c870c6a
set BaseFee to nil ( #222 )
...
* set BaseFee to nil
* fix lint
* comment fix
* update genesis.go
2023-02-20 22:04:55 -08:00
HAOYUatHZ
ec9254b0b1
feat: compute rollup gas price for StateTransition ( #209 )
...
* init
* more
* more
* add L1BlockContainerAddress
* finish
* add more comments
* rename `UsingSVM` to `UsingScroll`
* update logic
* refactor(rollup): add UsingScroll into ChainConfig
* update
* update comments
* fee=l2fee+l1fee (#221 )
add l1fee into calc
* improve
* format note content.
* feat(l1Fee): Add l1Fee in trace. (#223 )
* Add l1fee in trace.
* Delete comment.
---------
Co-authored-by: maskpp <maskpp266@gmail.com>
2023-02-20 16:28:43 +08:00
HAOYUatHZ
8a78c736a5
feat(trace): add withdraw trie root ( #217 )
...
* init rollup/rcfg/config.go
minor
* update traces struct
* init withdraw_trie.go
* finish
* fix `L2MessageQueueAddress`
* refactor(rollup): add `UsingScroll` into `ChainConfig` (#218 )
* update comments
* update comments
2023-02-16 10:18:47 +08:00
Péter Garamvölgyi
30f4f57f07
feat: add block transaction count limit ( #216 )
...
* feat: add block transaction count limit
* add tests
* nit
2023-02-15 15:13:03 +08:00
Haichen Shen
e3e0078d1b
feat: upgrade zktrie version to v0.5.0 ( #214 )
...
* upgrade zktrie version to v0.5.0
* update go.sum
2023-02-13 13:16:43 +08:00
maskpp
bb26fa3e39
feat(rpc): allow configure WS compression ( #210 )
...
* Default open ws compression.
* Default open ws compression.
* Enable ws compression.
* Enable ws compression.
---------
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Co-authored-by: HAOYUatHZ <haoyu@protonmail.com>
2023-02-10 17:33:43 +08:00
maskpp
8224bc8b9c
feat(rpc.BlockNumber): Add "finalized" and "safe" case in marshal and unmarshal interface. ( #213 )
...
Add finalized, safe case
2023-02-10 10:11:39 +01:00
HAOYUatHZ
0854d4bbb1
core, trie, eth, cmd: rework preimage store ( #205 )
...
* core, trie, eth, cmd: rework preimage store
* fix ci
* fix ci
* Update zk_trie_database.go
---------
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
Co-authored-by: maskpp <maskpp266@gmail.com>
2023-02-10 15:26:57 +08:00
Nazarii Denha
aae2ea53df
feat: include fee vault address in trace api result ( #208 )
...
* include fee vault address in trace api result
* use fee vault instead of coinbase if exists
* retrigger checks
* Update api_blocktrace_test.go
---------
Co-authored-by: maskpp <maskpp266@gmail.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2023-02-10 15:13:46 +08:00
Nazarii Denha
7c3657b61b
feat: make BLOCKHASH return only last blockhash ( #196 )
...
* make BLOCKHASH return only last blockhash
* fix
* small fix
2023-02-10 13:06:42 +08:00
ChuhanJin
98eb664f23
refactor(build): move jenkins files under build/jenkins/ folder ( #212 )
...
* move jenkins files
* trigger jenkins
* trigger jenkins
* trigger jenkins
* fix goproxy
---------
Co-authored-by: vincent <419436363@qq.com>
2023-02-10 10:25:35 +08:00
ChuhanJin
f2c39ae574
fix(jenkins): change tag jenkinsfile docker build script ( #207 )
...
change
Co-authored-by: vincent <419436363@qq.com>
2023-02-10 09:24:54 +08:00
Péter Garamvölgyi
5caecc87cf
fix: Update baseFee verification logic ( #211 )
...
* update baseFee verification logic
* only apply workaround for clique
2023-02-09 16:33:21 +01:00
Ho
3a080e5cb4
test(zktrie): add TestZkTrieDelete ( #201 )
...
update zktrie for deletion fix
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2023-02-09 21:14:10 +08:00
Péter Garamvölgyi
81e7775aa8
feat: dual code hash ( #188 )
...
* add KeccakCodeHash and CodeSize to StateAccount
* update StateAccount marshalling logic
* change emptyCodeHash to poseidon(nil)
* purge StateAccount.hash
* fix/disable failing tests
* change keccak and poseidon hash order in StateAccount
* fix lint
* update l2trace account wrapper
* update eth_getProof response type
* fix eth_getProof response type
* goimports
* update the codehash computation
* update the codehash test cases
* go mod tidy
* fix tests
* use keccak instead of poseidon
* update trace codehash field name
* upgrade zktrie to 4.2
* trigger ci
* update state account marshalling according to spec
* improve generatorStats estimation
* add comment
* upgrade zktrie to 4.3
* go mod tidy
* misc fixes
* fix TestDump
* fix snap sync tests
* handle err in the codehash
* fix tests in snapshot/generate_test.go
* remove prevhash from state journal
* add state_account_marshalling_test.go
* goimports
* add more tests
---------
Co-authored-by: Ho Vei <noelwei@gmail.com>
Co-authored-by: Haichen Shen <shenhaichen@gmail.com>
2023-02-08 16:12:41 -08:00
Zhang Zhuo
1fe2d22e29
feat: make eip2718 & eip1559 configurable in txpool ( #206 )
...
* txpool only supports legacy tx
* configurable tx pool EIP-2718 && EIP-1559
* try fix CI
* fix CI
* fix metamask incompatibility
* fix comments
* fix CI
* set basefee as 0 when disable eip2718 or eip1559
* fix typo
---------
Co-authored-by: colinlyguo <colinlyguo@gmail.com>
2023-02-03 14:24:15 +08:00
Péter Garamvölgyi
08ba436d8b
patch: Add safe and finalized tags to ethclient SDK ( #202 )
...
add safe and finalized tags to ethclient SDK
2023-01-27 08:53:31 +08:00
ChuhanJin
cdaea93962
build(jenkinsfile): add docker image publish job for git tag ( #198 )
...
* add tag jenkinsfile
* fix
* msg change
* change
* fix
* change
* trigger
* more precise
* simplify
Co-authored-by: vincent <419436363@qq.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2023-01-13 16:21:26 +08:00
Péter Garamvölgyi
2891916a0f
feat: Add Scroll fee vault address as fee recipient ( #187 )
...
* feat: add Scroll fee vault address as fee recipient
* log fee vault address if configured
* lint
* disable fee vault in test presets
* add simple test
2023-01-12 10:11:33 +01:00
Ho
81aafb09f3
[FIX]: zkproof writer handle reading non-existed address ( #197 )
...
zkproof writer: fix issue in reading unexist address
2023-01-10 12:48:53 +01:00
HAOYUatHZ
5ca70bf3a2
fix: revert block-on-demand (and use constant block time for clique) ( #193 )
...
revert block-on-demand
2022-12-21 15:32:56 +08:00
maskpp
78c1f57fcf
chore(ws): increase ws BufferSize & MessageSizeLimit ( #192 )
...
Increase ws cache in rpc module
2022-12-13 11:45:43 +08:00
maskpp
804e7edc23
refactor: rename NewTraceTransaction to NewTransactionData ( #190 )
...
rename NewTraceTransaction to NewTransactionData
2022-12-02 14:12:07 +08:00