Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
e791c38d
Unverified
Commit
e791c38d
authored
Sep 20, 2023
by
protolambda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go: update op-geth to include v1.12.2 changes
parent
76b65894
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
110 additions
and
70 deletions
+110
-70
go.mod
go.mod
+11
-9
go.sum
go.sum
+34
-14
memory_db.go
op-chain-ops/state/memory_db.go
+9
-5
l1_miner.go
op-e2e/actions/l1_miner.go
+3
-3
l1_replica.go
op-e2e/actions/l1_replica.go
+2
-2
l2_engine.go
op-e2e/actions/l2_engine.go
+3
-3
reorg_test.go
op-e2e/actions/reorg_test.go
+4
-3
op_geth_test.go
op-e2e/op_geth_test.go
+1
-2
system_test.go
op-e2e/system_test.go
+1
-2
fuzz_parsers_test.go
op-node/rollup/derive/fuzz_parsers_test.go
+1
-1
db_test.go
op-program/client/l2/db_test.go
+1
-1
block_processor.go
op-program/client/l2/engineapi/block_processor.go
+3
-3
l2_engine_api.go
op-program/client/l2/engineapi/l2_engine_api.go
+1
-1
db.go
op-program/client/mpt/db.go
+3
-3
trie.go
op-program/client/mpt/trie.go
+4
-1
cheat.go
op-wheel/cheat/cheat.go
+28
-16
engine.go
op-wheel/engine/engine.go
+1
-1
No files found.
go.mod
View file @
e791c38d
...
...
@@ -9,7 +9,7 @@ require (
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0
github.com/ethereum-optimism/go-ethereum-hdwallet v0.1.3
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20230921190252-f29074de9e36
github.com/ethereum/go-ethereum v1.12.
0
github.com/ethereum/go-ethereum v1.12.
2
github.com/fsnotify/fsnotify v1.6.0
github.com/go-chi/chi/v5 v5.0.10
github.com/go-chi/docgen v1.2.0
...
...
@@ -68,8 +68,8 @@ require (
github.com/containerd/cgroups v1.1.0 // indirect
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/crate-crypto/go-ipa v0.0.0-202
20523130400-f11357ae11c7
// indirect
github.com/crate-crypto/go-kzg-4844 v0.
2
.0 // indirect
github.com/crate-crypto/go-ipa v0.0.0-202
30601170251-1830d0757c80
// indirect
github.com/crate-crypto/go-kzg-4844 v0.
3
.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c // indirect
github.com/deckarep/golang-set/v2 v2.1.0 // indirect
...
...
@@ -78,16 +78,16 @@ require (
github.com/dlclark/regexp2 v1.7.0 // indirect
github.com/docker/docker v20.10.24+incompatible // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/dop251/goja v0.0.0-20230
122112309-96b1610dd4f7
// indirect
github.com/dop251/goja v0.0.0-20230
605162241-28ee0ee714f3
// indirect
github.com/elastic/gosigar v0.14.2 // indirect
github.com/ethereum/c-kzg-4844 v0.
2.0
// indirect
github.com/ethereum/c-kzg-4844 v0.
3.1
// indirect
github.com/fatih/color v1.7.0 // indirect
github.com/felixge/fgprof v0.9.3 // indirect
github.com/fjl/memsize v0.0.1 // indirect
github.com/flynn/noise v1.0.0 // indirect
github.com/francoispqt/gojay v1.2.13 // indirect
github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 // indirect
github.com/gballet/go-verkle v0.0.0-202
20902153445-097bd83b7732
// indirect
github.com/gballet/go-verkle v0.0.0-202
30607174250-df487255f46b
// indirect
github.com/getsentry/sentry-go v0.18.0 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
...
...
@@ -106,6 +106,7 @@ require (
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-bexpr v0.1.11 // indirect
github.com/hashicorp/golang-lru/arc/v2 v2.0.5 // indirect
github.com/holiman/billy v0.0.0-20230718173358-1c7e68d277a7 // indirect
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
github.com/huin/goupnp v1.2.0 // indirect
github.com/influxdata/influxdb-client-go/v2 v2.4.0 // indirect
...
...
@@ -122,7 +123,7 @@ require (
github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/karalabe/usb v0.0.
2
// indirect
github.com/karalabe/usb v0.0.
3-0.20230711191512-61db3e06439c
// indirect
github.com/klauspost/compress v1.16.7 // indirect
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
github.com/koron/go-ssdp v0.0.4 // indirect
...
...
@@ -189,6 +190,7 @@ require (
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
github.com/yusufpapurcu/wmi v1.2.2 // indirect
go.uber.org/automaxprocs v1.5.2 // indirect
go.uber.org/dig v1.17.0 // indirect
go.uber.org/fx v1.20.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
...
...
@@ -207,6 +209,6 @@ require (
rsc.io/tmplfunc v0.0.3 // indirect
)
replace github.com/ethereum/go-ethereum v1.12.
0 => github.com/ethereum-optimism/op-geth v1.101200.2-rc.1.0.20230914224024-b84ba11915a0
replace github.com/ethereum/go-ethereum v1.12.
2 => github.com/ethereum-optimism/op-geth v1.101200.2-rc.1.0.20230920123712-40033c03a5ca
//replace github.com/ethereum/go-ethereum v1.12.
0
=> ../go-ethereum
//replace github.com/ethereum/go-ethereum v1.12.
2
=> ../go-ethereum
go.sum
View file @
e791c38d
...
...
@@ -72,8 +72,11 @@ github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XL
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/logex v1.2.0/go.mod h1:9+9sk7u7pGNWYMkh0hdiL++6OeibzJccyQU4p4MedaY=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
github.com/chzyer/readline v1.5.0/go.mod h1:x22KAscuvRqlLoK9CsoYsmxoXZMMFVyOl86cAH8qUic=
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
github.com/chzyer/test v0.0.0-20210722231415-061457976a23/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
github.com/cilium/ebpf v0.2.0/go.mod h1:To2CFviqOWL/M0gIMsvSMlqe7em/l1ALkX1PyjrX2Qs=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
...
...
@@ -111,10 +114,10 @@ github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:ma
github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w=
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/crate-crypto/go-ipa v0.0.0-202
20523130400-f11357ae11c7 h1:6IrxszG5G+O7zhtkWxq6+unVvnrm1fqV2Pe+T95DUzw
=
github.com/crate-crypto/go-ipa v0.0.0-202
20523130400-f11357ae11c7/go.mod h1:gFnFS95y8HstDP6P9pPwzrxOOC5TRDkwbM+ao15ChA
I=
github.com/crate-crypto/go-kzg-4844 v0.
2.0 h1:UVuHOE+5tIWrim4zf/Xaa43+MIsDCPyW76QhUpiMGj4
=
github.com/crate-crypto/go-kzg-4844 v0.
2
.0/go.mod h1:SBP7ikXEgDnUPONgm33HtuDZEDtWa3L4QtN1ocJSEQ4=
github.com/crate-crypto/go-ipa v0.0.0-202
30601170251-1830d0757c80 h1:DuBDHVjgGMPki7bAyh91+3cF1Vh34sAEdH8JQgbc2R0
=
github.com/crate-crypto/go-ipa v0.0.0-202
30601170251-1830d0757c80/go.mod h1:gzbVz57IDJgQ9rLQwfSk696JGWof8ftznEL9GoAv3N
I=
github.com/crate-crypto/go-kzg-4844 v0.
3.0 h1:UBlWE0CgyFqqzTI+IFyCzA7A3Zw4iip6uzRv5NIXG0A
=
github.com/crate-crypto/go-kzg-4844 v0.
3
.0/go.mod h1:SBP7ikXEgDnUPONgm33HtuDZEDtWa3L4QtN1ocJSEQ4=
github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4=
...
...
@@ -152,8 +155,8 @@ github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDD
github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/dop251/goja v0.0.0-20211022113120-dc8c55024d06/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk=
github.com/dop251/goja v0.0.0-20230
122112309-96b1610dd4f7 h1:kgvzE5wLsLa7XKfV85VZl40QXaMCaeFtHpPwJ8fhotY
=
github.com/dop251/goja v0.0.0-20230
122112309-96b1610dd4f7/go.mod h1:yRkwfj0CBpOGre+TwBsqPV0IH0Pk73e4PXJOeNDboGs
=
github.com/dop251/goja v0.0.0-20230
605162241-28ee0ee714f3 h1:+3HCtB74++ClLy8GgjUQYeC8R4ILzVcIe8+5edAJJnE
=
github.com/dop251/goja v0.0.0-20230
605162241-28ee0ee714f3/go.mod h1:QMWlm50DNe14hD7t24KEqZuUdC9sOTy8W6XbCU1mlw4
=
github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7/go.mod h1:hn7BA7c8pLvoGndExHudxTDKZ84Pyvv+90pbBjbTz0Y=
github.com/dop251/goja_nodejs v0.0.0-20211022123610-8dd9abb0616d/go.mod h1:DngW8aVqWbuLRMHItjPUyqdj+HWPvnQe8V8y1nDpIbM=
github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo=
...
...
@@ -169,12 +172,12 @@ github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7
github.com/etcd-io/bbolt v1.3.3/go.mod h1:ZF2nL25h33cCyBtcyWeZ2/I3HQOfTP+0PIEvHjkjCrw=
github.com/ethereum-optimism/go-ethereum-hdwallet v0.1.3 h1:RWHKLhCrQThMfch+QJ1Z8veEq5ZO3DfIhZ7xgRP9WTc=
github.com/ethereum-optimism/go-ethereum-hdwallet v0.1.3/go.mod h1:QziizLAiF0KqyLdNJYD7O5cpDlaFMNZzlxYNcWsJUxs=
github.com/ethereum-optimism/op-geth v1.101200.2-rc.1.0.202309
14224024-b84ba11915a0 h1:Qcu7OVMbKvbu7aaDC31OY0JCqFIr2N+/SGdBTnxukCs
=
github.com/ethereum-optimism/op-geth v1.101200.2-rc.1.0.202309
14224024-b84ba11915a0/go.mod h1:gRnPb21PoKcHm3kHqj9BQlQkwmhOGUvQoGEbC7z852Q
=
github.com/ethereum-optimism/op-geth v1.101200.2-rc.1.0.202309
20123712-40033c03a5ca h1:RF0H0MdEKTPdaKe/4+LRG5H6otauXhKuSyf6NcsuPIA
=
github.com/ethereum-optimism/op-geth v1.101200.2-rc.1.0.202309
20123712-40033c03a5ca/go.mod h1:TATnHMajC8fpMPagb5Np97yt6kvke7if2An4PeIlhps
=
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20230921190252-f29074de9e36 h1:HGDz8DcAkHvZy+iPnBa8yr4MdLqKpb7oAks01P08JOg=
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20230921190252-f29074de9e36/go.mod h1:q0u2UbyOr1q/y94AgMOj/V8b1KO05ZwILTR/qKt7Auo=
github.com/ethereum/c-kzg-4844 v0.
2.0 h1:+cUvymlnoDDQgMInp25Bo3OmLajmmY8mLJ/tLjqd77Q
=
github.com/ethereum/c-kzg-4844 v0.
2.0/go.mod h1:WI2Nd82DMZAAZI1wV2neKGost9EKjvbpQR9OqE5Qqa8
=
github.com/ethereum/c-kzg-4844 v0.
3.1 h1:sR65+68+WdnMKxseNWxSJuAv2tsUrihTpVBTfM/U5Zg
=
github.com/ethereum/c-kzg-4844 v0.
3.1/go.mod h1:VewdlzQmpT5QSrVhbBuGoCdFJkpaJlO1aQputP83wc0
=
github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod h1:duJ4Jxv5lDcvg4QuQr0oowTf7dz4/CR8NtyCooz9HL8=
github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
...
...
@@ -196,8 +199,8 @@ github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbS
github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc=
github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 h1:f6D9Hr8xV8uYKlyuj8XIruxlh9WjVjdh1gIicAS7ays=
github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08/go.mod h1:x7DCsMOv1taUwEWCzT4cmDeAkigA5/QCwUodaVOe8Ww=
github.com/gballet/go-verkle v0.0.0-202
20902153445-097bd83b7732 h1:AB7YjNrzlVHsYz06zCULVV2zYCEft82P86dSmtwxKL
0=
github.com/gballet/go-verkle v0.0.0-202
20902153445-097bd83b7732/go.mod h1:o/XfIXWi4/GqbQirfRm5uTbXMG5NpqxkxblnbZ+QM9
I=
github.com/gballet/go-verkle v0.0.0-202
30607174250-df487255f46b h1:vMT47RYsrftsHSTQhqXwC3BYflo38OLC3Y4LtXtLyU
0=
github.com/gballet/go-verkle v0.0.0-202
30607174250-df487255f46b/go.mod h1:CDncRYVRSDqwakm282WEkjfaAj1hxU/v5RXxk5nXOi
I=
github.com/getkin/kin-openapi v0.53.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW6yheSwk8Yi4=
github.com/getkin/kin-openapi v0.61.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW6yheSwk8Yi4=
github.com/getsentry/sentry-go v0.12.0/go.mod h1:NSap0JBYWzHND8oMbyi0+XZhUalc1TBdRL1M71JZW2c=
...
...
@@ -303,6 +306,7 @@ github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXi
github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/pprof v0.0.0-20211214055906-6f57359322fd/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg=
github.com/google/pprof v0.0.0-20230207041349-798e818bf904/go.mod h1:uglQLonpP8qtYCYyzA+8c/9qtqgA3qsXGYqCPKARAFg=
github.com/google/pprof v0.0.0-20230817174616-7a8ec2ada47b h1:h9U78+dx9a4BKdQkBBos92HalKpaGKHrp+3Uo6yTodo=
github.com/google/pprof v0.0.0-20230817174616-7a8ec2ada47b/go.mod h1:czg5+yv1E0ZGTi6S6vVK1mke0fV+FaUhNGcd6VRS9Ik=
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
...
...
@@ -335,6 +339,8 @@ github.com/hashicorp/golang-lru/arc/v2 v2.0.5/go.mod h1:ny6zBSQZi2JxIeYcv7kt2sH2
github.com/hashicorp/golang-lru/v2 v2.0.5 h1:wW7h1TG88eUIJ2i69gaE3uNVtEPIagzhGvHgwfx2Vm4=
github.com/hashicorp/golang-lru/v2 v2.0.5/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/holiman/billy v0.0.0-20230718173358-1c7e68d277a7 h1:3JQNjnMRil1yD0IfZKHF9GxxWKDJGj8I0IqOUol//sw=
github.com/holiman/billy v0.0.0-20230718173358-1c7e68d277a7/go.mod h1:5GuXa7vkL8u9FkFuWdVvfR5ix8hRB7DbOAaYULamFpc=
github.com/holiman/bloomfilter/v2 v2.0.3 h1:73e0e/V0tCydx14a0SCYS/EWCxgwLZ18CZcZKVu0fao=
github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iURXE7ZOP9L9hSkA=
github.com/holiman/uint256 v1.2.3 h1:K8UWO1HUJpRMXBxbmaY1Y8IAMZC/RsKB+ArEnnK4l5o=
...
...
@@ -345,6 +351,7 @@ github.com/huin/goupnp v1.2.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFck
github.com/hydrogen18/memlistener v0.0.0-20200120041712-dcc25e7acd91/go.mod h1:qEIFzExnS6016fRpRfxrExeVn2gbClQA99gQhnIcdhE=
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w=
github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w=
github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/influxdata/influxdb-client-go/v2 v2.4.0 h1:HGBfZYStlx3Kqvsv1h2pJixbCl/jhnFtxpKFAv9Tu5k=
...
...
@@ -444,8 +451,8 @@ github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfV
github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U=
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod h1:3w7q1U84EfirKl04SVQ/s7nPm1ZPhiXd34z40TNz36k=
github.com/karalabe/usb v0.0.
2 h1:M6QQBNxF+CQ8OFvxrT90BA0qBOXymndZnk5q235mFc4
=
github.com/karalabe/usb v0.0.
2
/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU=
github.com/karalabe/usb v0.0.
3-0.20230711191512-61db3e06439c h1:AqsttAyEyIEsNz5WLRwuRwjiT5CMDUfLk6cFJDVPebs
=
github.com/karalabe/usb v0.0.
3-0.20230711191512-61db3e06439c
/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU=
github.com/kataras/golog v0.0.10/go.mod h1:yJ8YKCmyL+nWjERB90Qwn+bdyBZsaQwU3bTVFgkFIp8=
github.com/kataras/iris/v12 v12.1.8/go.mod h1:LMYy4VlP67TQ3Zgriz8RE2h2kMZV2SgMYbq3UhfoFmE=
github.com/kataras/neffos v0.0.14/go.mod h1:8lqADm8PnbeFfL7CLXh1WHw53dG27MC3pgi2R1rmoTE=
...
...
@@ -666,6 +673,8 @@ github.com/pkg/profile v1.7.0 h1:hnbDkaNWPCLMO9wGLdBFTIZvzDrDfBM2072E1S9gJkA=
github.com/pkg/profile v1.7.0/go.mod h1:8Uer0jas47ZQMJ7VD+OHknK4YDY07LPUC6dEvqDjvNo=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4g=
github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U=
github.com/prometheus/client_golang v0.8.0/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
github.com/prometheus/client_golang v1.14.0 h1:nJdhIvne2eSX/XRAFV9PcvFFRbrjbcTUj0VP62TMhnw=
github.com/prometheus/client_golang v1.14.0/go.mod h1:8vpkKitgIVNcqrRBWh1C4TIUQgYNtG/XQE4E/Zae36Y=
...
...
@@ -812,6 +821,7 @@ github.com/yudai/pp v2.0.1+incompatible/go.mod h1:PuxR/8QJ7cyCkFp/aUDS+JY727OFEZ
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
github.com/yusufpapurcu/wmi v1.2.2 h1:KBNDSne4vP5mbSWnJbO+51IMOXJB67QiYCSBrubbPRg=
github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0=
github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
...
...
@@ -823,6 +833,8 @@ go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE=
go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
go.uber.org/automaxprocs v1.5.2 h1:2LxUOGiR3O6tw8ui5sZa2LAaHnsviZdVOUZw4fvbnME=
go.uber.org/automaxprocs v1.5.2/go.mod h1:eRbA25aqJrxAbsLO0xy5jVwPt7FQnRgjW+efnwa1WM0=
go.uber.org/dig v1.17.0 h1:5Chju+tUvcC+N7N6EV08BJz41UZuO3BmHcN4A287ZLI=
go.uber.org/dig v1.17.0/go.mod h1:rTxpf7l5I0eBTlE6/9RL+lDybC7WFwY2QH55ZSjy1mU=
go.uber.org/fx v1.20.0 h1:ZMC/pnRvhsthOZh9MZjMq5U8Or3mA9zBSPaLnzs3ihQ=
...
...
@@ -884,6 +896,7 @@ golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzB
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc=
golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
...
...
@@ -916,6 +929,7 @@ golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT
golang.org/x/net v0.0.0-20211008194852-3b03d305991f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8=
golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
...
...
@@ -931,6 +945,8 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E=
golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
golang.org/x/sys v0.0.0-20180810173357-98c5dad5d1a0/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
...
...
@@ -978,10 +994,12 @@ golang.org/x/sys v0.0.0-20211020174200-9d6173849985/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220405052023-b1e9470b6e64/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
...
...
@@ -1001,6 +1019,7 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k=
golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
...
...
@@ -1035,6 +1054,7 @@ golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4f
golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.13.0 h1:Iey4qkscZuv0VvIt8E0neZjtPVQFSc870HQ448QgEmQ=
golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58=
golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
...
...
op-chain-ops/state/memory_db.go
View file @
e791c38d
...
...
@@ -28,7 +28,7 @@ type MemoryStateDB struct {
func
NewMemoryStateDB
(
genesis
*
core
.
Genesis
)
*
MemoryStateDB
{
if
genesis
==
nil
{
genesis
=
core
.
DeveloperGenesisBlock
(
15
,
15
_000_000
,
common
.
Address
{})
genesis
=
core
.
DeveloperGenesisBlock
(
15
_000_000
,
common
.
Address
{})
}
return
&
MemoryStateDB
{
...
...
@@ -235,12 +235,16 @@ func (db *MemoryStateDB) DeleteState(addr common.Address, key common.Hash) {
db
.
genesis
.
Alloc
[
addr
]
=
account
}
func
(
db
*
MemoryStateDB
)
S
uicide
(
common
.
Address
)
bool
{
panic
(
"S
uicide
unimplemented"
)
func
(
db
*
MemoryStateDB
)
S
elfDestruct
(
common
.
Address
)
{
panic
(
"S
elfDestruct
unimplemented"
)
}
func
(
db
*
MemoryStateDB
)
HasSuicided
(
common
.
Address
)
bool
{
panic
(
"HasSuicided unimplemented"
)
func
(
db
*
MemoryStateDB
)
HasSelfDestructed
(
common
.
Address
)
bool
{
panic
(
"HasSelfDestructed unimplemented"
)
}
func
(
db
*
MemoryStateDB
)
Selfdestruct6780
(
common
.
Address
)
{
panic
(
"Selfdestruct6780 unimplemented"
)
}
// Exist reports whether the given account exists in state.
...
...
op-e2e/actions/l1_miner.go
View file @
e791c38d
...
...
@@ -4,7 +4,7 @@ import (
"math/big"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/consensus/misc"
"github.com/ethereum/go-ethereum/consensus/misc
/eip1559
"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
...
...
@@ -67,7 +67,7 @@ func (s *L1Miner) ActL1StartBlock(timeDelta uint64) Action {
MixDigest
:
common
.
Hash
{},
// TODO: maybe randomize this (prev-randao value)
}
if
s
.
l1Cfg
.
Config
.
IsLondon
(
header
.
Number
)
{
header
.
BaseFee
=
misc
.
CalcBaseFee
(
s
.
l1Cfg
.
Config
,
parent
)
header
.
BaseFee
=
eip1559
.
CalcBaseFee
(
s
.
l1Cfg
.
Config
,
parent
)
// At the transition, double the gas limit so the gas target is equal to the old gas limit.
if
!
s
.
l1Cfg
.
Config
.
IsLondon
(
parent
.
Number
)
{
header
.
GasLimit
=
parent
.
GasLimit
*
s
.
l1Cfg
.
Config
.
ElasticityMultiplier
()
...
...
@@ -151,7 +151,7 @@ func (s *L1Miner) ActL1EndBlock(t Testing) {
}
// Write state changes to db
root
,
err
:=
s
.
l1BuildingState
.
Commit
(
s
.
l1Cfg
.
Config
.
IsEIP158
(
s
.
l1BuildingHeader
.
Number
))
root
,
err
:=
s
.
l1BuildingState
.
Commit
(
s
.
l1
BuildingHeader
.
Number
.
Uint64
(),
s
.
l1
Cfg
.
Config
.
IsEIP158
(
s
.
l1BuildingHeader
.
Number
))
if
err
!=
nil
{
t
.
Fatalf
(
"l1 state write error: %v"
,
err
)
}
...
...
op-e2e/actions/l1_replica.go
View file @
e791c38d
...
...
@@ -161,12 +161,12 @@ func (s *L1Replica) MockL1RPCErrors(fn func() error) {
}
func
(
s
*
L1Replica
)
EthClient
()
*
ethclient
.
Client
{
cl
,
_
:=
s
.
node
.
Attach
()
// never errors
cl
:=
s
.
node
.
Attach
()
return
ethclient
.
NewClient
(
cl
)
}
func
(
s
*
L1Replica
)
RPCClient
()
client
.
RPC
{
cl
,
_
:=
s
.
node
.
Attach
()
// never errors
cl
:=
s
.
node
.
Attach
()
return
testutils
.
RPCErrFaker
{
RPC
:
client
.
NewBaseRPCClient
(
cl
),
ErrFn
:
func
()
error
{
...
...
op-e2e/actions/l2_engine.go
View file @
e791c38d
...
...
@@ -132,17 +132,17 @@ func (e *engineApiBackend) Genesis() *core.Genesis {
}
func
(
s
*
L2Engine
)
EthClient
()
*
ethclient
.
Client
{
cl
,
_
:=
s
.
node
.
Attach
()
// never errors
cl
:=
s
.
node
.
Attach
()
return
ethclient
.
NewClient
(
cl
)
}
func
(
s
*
L2Engine
)
GethClient
()
*
gethclient
.
Client
{
cl
,
_
:=
s
.
node
.
Attach
()
// never errors
cl
:=
s
.
node
.
Attach
()
return
gethclient
.
New
(
cl
)
}
func
(
e
*
L2Engine
)
RPCClient
()
client
.
RPC
{
cl
,
_
:=
e
.
node
.
Attach
()
// never errors
cl
:=
e
.
node
.
Attach
()
return
testutils
.
RPCErrFaker
{
RPC
:
client
.
NewBaseRPCClient
(
cl
),
ErrFn
:
func
()
error
{
...
...
op-e2e/actions/reorg_test.go
View file @
e791c38d
...
...
@@ -7,6 +7,7 @@ import (
"testing"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/txpool"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth/ethconfig"
"github.com/ethereum/go-ethereum/log"
...
...
@@ -94,7 +95,7 @@ func TestReorgOrphanBlock(gt *testing.T) {
miner
.
ActL1SetFeeRecipient
(
common
.
Address
{
'C'
})
// note: the geth tx pool reorgLoop is too slow (responds to chain head events, but async),
// and there's no way to manually trigger runReorg, so we re-insert it ourselves.
require
.
NoError
(
t
,
miner
.
eth
.
TxPool
()
.
Add
Local
(
batchTx
)
)
require
.
NoError
(
t
,
miner
.
eth
.
TxPool
()
.
Add
([]
*
txpool
.
Transaction
{{
Tx
:
batchTx
}},
true
,
true
)[
0
]
)
// need to re-insert previously included tx into the block
miner
.
ActL1IncludeTx
(
sd
.
RollupCfg
.
Genesis
.
SystemConfig
.
BatcherAddr
)(
t
)
miner
.
ActL1EndBlock
(
t
)
...
...
@@ -173,7 +174,7 @@ func TestReorgFlipFlop(gt *testing.T) {
// re-include the batch tx that submitted L2 chain data that pointed to A0, in the new block B1
miner
.
ActL1SetFeeRecipient
(
common
.
Address
{
'B'
,
1
})
miner
.
ActL1StartBlock
(
12
)(
t
)
require
.
NoError
(
t
,
miner
.
eth
.
TxPool
()
.
Add
Local
(
batchTxA
)
)
require
.
NoError
(
t
,
miner
.
eth
.
TxPool
()
.
Add
([]
*
txpool
.
Transaction
{{
Tx
:
batchTxA
}},
true
,
true
)[
0
]
)
miner
.
ActL1IncludeTx
(
sd
.
RollupCfg
.
Genesis
.
SystemConfig
.
BatcherAddr
)(
t
)
miner
.
ActL1EndBlock
(
t
)
...
...
@@ -229,7 +230,7 @@ func TestReorgFlipFlop(gt *testing.T) {
miner
.
ActL1SetFeeRecipient
(
common
.
Address
{
'A'
,
2
})
miner
.
ActL1StartBlock
(
12
)(
t
)
require
.
NoError
(
t
,
miner
.
eth
.
TxPool
()
.
Add
Local
(
batchTxA
)
)
// replay chain A batches, but now in A2 instead of A1
require
.
NoError
(
t
,
miner
.
eth
.
TxPool
()
.
Add
([]
*
txpool
.
Transaction
{{
Tx
:
batchTxA
}},
true
,
true
)[
0
]
)
// replay chain A batches, but now in A2 instead of A1
miner
.
ActL1IncludeTx
(
sd
.
RollupCfg
.
Genesis
.
SystemConfig
.
BatcherAddr
)(
t
)
miner
.
ActL1EndBlock
(
t
)
...
...
op-e2e/op_geth_test.go
View file @
e791c38d
...
...
@@ -157,8 +157,7 @@ func TestGethOnlyPendingBlockIsLatest(t *testing.T) {
require
.
NoError
(
t
,
opGeth
.
L2Client
.
SendTransaction
(
ctx
,
tx
),
"send tx to make pending work different"
)
checkPending
(
"prepared"
,
0
)
rpcClient
,
err
:=
opGeth
.
node
.
Attach
()
require
.
NoError
(
t
,
err
)
rpcClient
:=
opGeth
.
node
.
Attach
()
defer
rpcClient
.
Close
()
// Wait for tx to be in tx-pool, for it to be picked up in block building
...
...
op-e2e/system_test.go
View file @
e791c38d
...
...
@@ -720,8 +720,7 @@ func TestSystemP2PAltSync(t *testing.T) {
_
,
err
=
sys
.
Mocknet
.
ConnectPeers
(
sys
.
RollupNodes
[
"bob"
]
.
P2P
()
.
Host
()
.
ID
(),
syncerNode
.
P2P
()
.
Host
()
.
ID
())
require
.
NoError
(
t
,
err
)
rpc
,
err
:=
syncerL2Engine
.
Attach
()
require
.
NoError
(
t
,
err
)
rpc
:=
syncerL2Engine
.
Attach
()
l2Verif
:=
ethclient
.
NewClient
(
rpc
)
// It may take a while to sync, but eventually we should see the sequenced data show up
...
...
op-node/rollup/derive/fuzz_parsers_test.go
View file @
e791c38d
...
...
@@ -222,7 +222,7 @@ func FuzzUnmarshallLogEvent(f *testing.F) {
}
state
.
SetBalance
(
from
,
BytesToBigInt
([]
byte
{
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
}))
state
.
SetCode
(
addr
,
common
.
FromHex
(
bindings
.
OptimismPortalDeployedBin
))
_
,
err
=
state
.
Commit
(
false
)
_
,
err
=
state
.
Commit
(
0
,
false
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
...
...
op-program/client/l2/db_test.go
View file @
e791c38d
...
...
@@ -136,7 +136,7 @@ func TestUpdateState(t *testing.T) {
require
.
Equal
(
t
,
[]
byte
{
1
},
statedb
.
GetCode
(
codeAccount
))
// Changes should be available under the new state root after committing
newRoot
,
err
:=
statedb
.
Commit
(
false
)
newRoot
,
err
:=
statedb
.
Commit
(
genesisBlock
.
NumberU64
()
+
1
,
false
)
require
.
NoError
(
t
,
err
)
err
=
statedb
.
Database
()
.
TrieDB
()
.
Commit
(
newRoot
,
true
)
require
.
NoError
(
t
,
err
)
...
...
op-program/client/l2/engineapi/block_processor.go
View file @
e791c38d
...
...
@@ -8,7 +8,7 @@ import (
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/consensus"
"github.com/ethereum/go-ethereum/consensus/misc"
"github.com/ethereum/go-ethereum/consensus/misc
/eip1559
"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
...
...
@@ -68,7 +68,7 @@ func NewBlockProcessorFromHeader(provider BlockDataProvider, h *types.Header) (*
return
nil
,
fmt
.
Errorf
(
"get parent state: %w"
,
err
)
}
header
.
Number
=
new
(
big
.
Int
)
.
Add
(
parentHeader
.
Number
,
common
.
Big1
)
header
.
BaseFee
=
misc
.
CalcBaseFee
(
provider
.
Config
(),
parentHeader
)
header
.
BaseFee
=
eip1559
.
CalcBaseFee
(
provider
.
Config
(),
parentHeader
)
header
.
GasUsed
=
0
gasPool
:=
new
(
core
.
GasPool
)
.
AddGas
(
header
.
GasLimit
)
return
&
BlockProcessor
{
...
...
@@ -107,7 +107,7 @@ func (b *BlockProcessor) Assemble() (*types.Block, error) {
}
func
(
b
*
BlockProcessor
)
Commit
()
error
{
root
,
err
:=
b
.
state
.
Commit
(
b
.
dataProvider
.
Config
()
.
IsEIP158
(
b
.
header
.
Number
))
root
,
err
:=
b
.
state
.
Commit
(
b
.
header
.
Number
.
Uint64
(),
b
.
dataProvider
.
Config
()
.
IsEIP158
(
b
.
header
.
Number
))
if
err
!=
nil
{
return
fmt
.
Errorf
(
"state write error: %w"
,
err
)
}
...
...
op-program/client/l2/engineapi/l2_engine_api.go
View file @
e791c38d
...
...
@@ -294,7 +294,7 @@ func (ea *L2EngineAPI) NewPayloadV1(ctx context.Context, payload *eth.ExecutionP
BaseFeePerGas
:
payload
.
BaseFeePerGas
.
ToBig
(),
BlockHash
:
payload
.
BlockHash
,
Transactions
:
txs
,
})
}
,
nil
)
if
err
!=
nil
{
log
.
Debug
(
"Invalid NewPayload params"
,
"params"
,
payload
,
"error"
,
err
)
return
&
eth
.
PayloadStatusV1
{
Status
:
eth
.
ExecutionInvalidBlockHash
},
nil
...
...
op-program/client/mpt/db.go
View file @
e791c38d
...
...
@@ -94,11 +94,11 @@ func (p *DB) ModifyAncients(f func(ethdb.AncientWriteOp) error) (int64, error) {
panic
(
"not supported"
)
}
func
(
p
*
DB
)
TruncateHead
(
n
uint64
)
error
{
func
(
p
*
DB
)
TruncateHead
(
n
uint64
)
(
uint64
,
error
)
{
panic
(
"not supported"
)
}
func
(
p
*
DB
)
TruncateTail
(
n
uint64
)
error
{
func
(
p
*
DB
)
TruncateTail
(
n
uint64
)
(
uint64
,
error
)
{
panic
(
"not supported"
)
}
...
...
@@ -114,4 +114,4 @@ func (p *DB) AncientDatadir() (string, error) {
panic
(
"not supported"
)
}
var
_
ethdb
.
KeyValueStor
e
=
(
*
DB
)(
nil
)
var
_
ethdb
.
Databas
e
=
(
*
DB
)(
nil
)
op-program/client/mpt/trie.go
View file @
e791c38d
...
...
@@ -51,7 +51,10 @@ func ReadTrie(root common.Hash, getPreimage func(key common.Hash) []byte) []hexu
if
err
!=
nil
{
panic
(
err
)
}
iter
:=
tr
.
NodeIterator
(
nil
)
iter
,
err
:=
tr
.
NodeIterator
(
nil
)
if
err
!=
nil
{
panic
(
err
)
}
// With small lists the iterator seems to use 0x80 (RLP empty string, unlike the others)
// as key for item 0, causing it to come last.
...
...
op-wheel/cheat/cheat.go
View file @
e791c38d
...
...
@@ -78,7 +78,7 @@ func (ch *Cheater) Close() error {
return
ch
.
DB
.
Close
()
}
type
HeadFn
func
(
headState
*
state
.
StateDB
)
error
type
HeadFn
func
(
head
er
*
types
.
Header
,
head
State
*
state
.
StateDB
)
error
// RunAndClose runs the given function on the head-state, and then persists any changes (if not ReadOnly),
// and updates the blockchain headers indexes to reflect the new state-root, so geth will believe the cheat
...
...
@@ -93,7 +93,7 @@ func (ch *Cheater) RunAndClose(fn HeadFn) error {
_
=
ch
.
Close
()
return
fmt
.
Errorf
(
"failed to look up head state: %w"
,
err
)
}
if
err
:=
fn
(
state
);
err
!=
nil
{
if
err
:=
fn
(
preHeader
,
state
);
err
!=
nil
{
_
=
ch
.
Close
()
return
fmt
.
Errorf
(
"failed to run state change: %w"
,
err
)
}
...
...
@@ -102,7 +102,7 @@ func (ch *Cheater) RunAndClose(fn HeadFn) error {
}
// commit the changes, and then update the state-root
stateRoot
,
err
:=
state
.
Commit
(
true
)
stateRoot
,
err
:=
state
.
Commit
(
preHeader
.
Number
.
Uint64
()
+
1
,
true
)
if
err
!=
nil
{
_
=
ch
.
Close
()
return
fmt
.
Errorf
(
"failed to commit state change: %w"
,
err
)
...
...
@@ -171,7 +171,7 @@ func (ch *Cheater) RunAndClose(fn HeadFn) error {
// StorageSet modifies the storage of the given address at the given key to the given value.
func
StorageSet
(
address
common
.
Address
,
key
common
.
Hash
,
value
common
.
Hash
)
HeadFn
{
return
func
(
headState
*
state
.
StateDB
)
error
{
return
func
(
_
*
types
.
Header
,
headState
*
state
.
StateDB
)
error
{
headState
.
SetState
(
address
,
key
,
value
)
return
nil
}
...
...
@@ -179,7 +179,7 @@ func StorageSet(address common.Address, key common.Hash, value common.Hash) Head
// StorageGet just reads the storage of the given address at the given key.
func
StorageGet
(
address
common
.
Address
,
key
common
.
Hash
,
w
io
.
Writer
)
HeadFn
{
return
func
(
headState
*
state
.
StateDB
)
error
{
return
func
(
_
*
types
.
Header
,
headState
*
state
.
StateDB
)
error
{
value
:=
headState
.
GetState
(
address
,
key
)
_
,
err
:=
io
.
WriteString
(
w
,
value
.
Hex
())
return
err
...
...
@@ -191,7 +191,7 @@ func StorageGet(address common.Address, key common.Hash, w io.Writer) HeadFn {
// Combined with StoragePatch this allows for quick surgery of 1 account in one database,
// to another account (maybe even in a different database!).
func
StorageReadAll
(
address
common
.
Address
,
w
io
.
Writer
)
HeadFn
{
return
func
(
headState
*
state
.
StateDB
)
error
{
return
func
(
_
*
types
.
Header
,
headState
*
state
.
StateDB
)
error
{
storage
,
err
:=
headState
.
StorageTrie
(
address
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to open storage trie of addr %s: %w"
,
address
,
err
)
...
...
@@ -199,7 +199,11 @@ func StorageReadAll(address common.Address, w io.Writer) HeadFn {
if
storage
==
nil
{
return
fmt
.
Errorf
(
"no storage trie in state for account %s"
,
address
)
}
iter
:=
trie
.
NewIterator
(
storage
.
NodeIterator
(
nil
))
nodeIter
,
err
:=
storage
.
NodeIterator
(
nil
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to create node iterator for storage of %s: %w"
,
address
,
err
)
}
iter
:=
trie
.
NewIterator
(
nodeIter
)
for
iter
.
Next
()
{
if
_
,
err
:=
fmt
.
Fprintf
(
w
,
"+ %x = %x
\n
"
,
iter
.
Key
,
dbValueToHash
(
iter
.
Value
));
err
!=
nil
{
return
err
...
...
@@ -224,7 +228,7 @@ func dbValueToHash(enc []byte) common.Hash {
// StorageDiff compares the storage of two different accounts, and writes a patch with differences.
// Each difference is expressed with 1 character + or - to indicate the change from a to b, followed by key = value.
func
StorageDiff
(
out
io
.
Writer
,
addressA
,
addressB
common
.
Address
)
HeadFn
{
return
func
(
headState
*
state
.
StateDB
)
error
{
return
func
(
_
*
types
.
Header
,
headState
*
state
.
StateDB
)
error
{
aStorage
,
err
:=
headState
.
StorageTrie
(
addressA
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to open storage trie of addr A %s: %w"
,
addressA
,
err
)
...
...
@@ -239,8 +243,16 @@ func StorageDiff(out io.Writer, addressA, addressB common.Address) HeadFn {
if
bStorage
==
nil
{
return
fmt
.
Errorf
(
"no storage trie in state for account B %s"
,
addressB
)
}
aIter
:=
trie
.
NewIterator
(
aStorage
.
NodeIterator
(
nil
))
bIter
:=
trie
.
NewIterator
(
bStorage
.
NodeIterator
(
nil
))
aNodeIter
,
err
:=
aStorage
.
NodeIterator
(
nil
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to create node iterator for storage of %s (A): %w"
,
addressA
,
err
)
}
bNodeIter
,
err
:=
bStorage
.
NodeIterator
(
nil
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to create node iterator for storage of %s (b): %w"
,
addressB
,
err
)
}
aIter
:=
trie
.
NewIterator
(
aNodeIter
)
bIter
:=
trie
.
NewIterator
(
bNodeIter
)
hasA
:=
aIter
.
Next
()
hasB
:=
bIter
.
Next
()
for
{
...
...
@@ -284,7 +296,7 @@ func StorageDiff(out io.Writer, addressA, addressB common.Address) HeadFn {
// Deletions are prefixed with (-) and overwrite it to a zero value.
// Comments (#) and empty lines are ignored.
func
StoragePatch
(
patch
io
.
Reader
,
address
common
.
Address
)
HeadFn
{
return
func
(
headState
*
state
.
StateDB
)
error
{
return
func
(
head
*
types
.
Header
,
head
State
*
state
.
StateDB
)
error
{
s
:=
bufio
.
NewScanner
(
patch
)
i
:=
0
for
s
.
Scan
()
{
...
...
@@ -312,7 +324,7 @@ func StoragePatch(patch io.Reader, address common.Address) HeadFn {
}
i
+=
1
if
i
%
1000
==
0
{
// for every 1000 values, commit to disk
if
_
,
err
:=
headState
.
Commit
(
true
);
err
!=
nil
{
if
_
,
err
:=
headState
.
Commit
(
head
.
Number
.
Uint64
(),
true
);
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to commit state to disk after patching %d entries: %w"
,
i
,
err
)
}
}
...
...
@@ -329,7 +341,7 @@ type OvmOwnersConfig struct {
}
func
OvmOwners
(
conf
*
OvmOwnersConfig
)
HeadFn
{
return
func
(
headState
*
state
.
StateDB
)
error
{
return
func
(
_
*
types
.
Header
,
headState
*
state
.
StateDB
)
error
{
var
addressManager
common
.
Address
// Lib_AddressManager
var
l1SBProxy
common
.
Address
// Proxy__OVM_L1StandardBridge
var
l1XDMProxy
common
.
Address
// Proxy__OVM_L1CrossDomainMessenger
...
...
@@ -374,21 +386,21 @@ func OvmOwners(conf *OvmOwnersConfig) HeadFn {
}
func
SetBalance
(
addr
common
.
Address
,
amount
*
big
.
Int
)
HeadFn
{
return
func
(
headState
*
state
.
StateDB
)
error
{
return
func
(
_
*
types
.
Header
,
headState
*
state
.
StateDB
)
error
{
headState
.
SetBalance
(
addr
,
amount
)
return
nil
}
}
func
SetCode
(
addr
common
.
Address
,
code
hexutil
.
Bytes
)
HeadFn
{
return
func
(
headState
*
state
.
StateDB
)
error
{
return
func
(
_
*
types
.
Header
,
headState
*
state
.
StateDB
)
error
{
headState
.
SetCode
(
addr
,
code
)
return
nil
}
}
func
SetNonce
(
addr
common
.
Address
,
nonce
uint64
)
HeadFn
{
return
func
(
headState
*
state
.
StateDB
)
error
{
return
func
(
_
*
types
.
Header
,
headState
*
state
.
StateDB
)
error
{
headState
.
SetNonce
(
addr
,
nonce
)
return
nil
}
...
...
op-wheel/engine/engine.go
View file @
e791c38d
...
...
@@ -296,7 +296,7 @@ func Copy(ctx context.Context, copyFrom client.RPC, copyTo client.RPC) error {
if
err
!=
nil
{
return
err
}
payloadEnv
:=
engine
.
BlockToExecutableData
(
copyHead
,
nil
)
payloadEnv
:=
engine
.
BlockToExecutableData
(
copyHead
,
nil
,
nil
,
nil
,
nil
)
if
err
:=
updateForkchoice
(
ctx
,
copyTo
,
copyHead
.
ParentHash
(),
copySafe
.
Hash
(),
copyFinalized
.
Hash
());
err
!=
nil
{
return
err
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment