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
a36291dc
Unverified
Commit
a36291dc
authored
Aug 27, 2024
by
Adrian Sutton
Committed by
GitHub
Aug 27, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-geth: Update op-geth with single threaded fixes (#11598)
parent
2b128c70
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
go.mod
go.mod
+1
-1
go.sum
go.sum
+2
-2
db_test.go
op-program/client/l2/db_test.go
+2
-0
engine_backend.go
op-program/client/l2/engine_backend.go
+6
-1
No files found.
go.mod
View file @
a36291dc
...
@@ -235,7 +235,7 @@ require (
...
@@ -235,7 +235,7 @@ require (
rsc.io/tmplfunc v0.0.3 // indirect
rsc.io/tmplfunc v0.0.3 // indirect
)
)
replace github.com/ethereum/go-ethereum v1.14.8 => github.com/ethereum-optimism/op-geth v1.101408.0-rc.4.0.2024082
2213944-6c8de76e0720
replace github.com/ethereum/go-ethereum v1.14.8 => github.com/ethereum-optimism/op-geth v1.101408.0-rc.4.0.2024082
7042333-110c433a2469
// replace github.com/ethereum/go-ethereum => ../op-geth
// replace github.com/ethereum/go-ethereum => ../op-geth
...
...
go.sum
View file @
a36291dc
...
@@ -176,8 +176,8 @@ github.com/elastic/gosigar v0.14.3 h1:xwkKwPia+hSfg9GqrCUKYdId102m9qTJIIr7egmK/u
...
@@ -176,8 +176,8 @@ github.com/elastic/gosigar v0.14.3 h1:xwkKwPia+hSfg9GqrCUKYdId102m9qTJIIr7egmK/u
github.com/elastic/gosigar v0.14.3/go.mod h1:iXRIGg2tLnu7LBdpqzyQfGDEidKCfWcCMS0WKyPWoMs=
github.com/elastic/gosigar v0.14.3/go.mod h1:iXRIGg2tLnu7LBdpqzyQfGDEidKCfWcCMS0WKyPWoMs=
github.com/ethereum-optimism/go-ethereum-hdwallet v0.1.3 h1:RWHKLhCrQThMfch+QJ1Z8veEq5ZO3DfIhZ7xgRP9WTc=
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/go-ethereum-hdwallet v0.1.3/go.mod h1:QziizLAiF0KqyLdNJYD7O5cpDlaFMNZzlxYNcWsJUxs=
github.com/ethereum-optimism/op-geth v1.101408.0-rc.4.0.2024082
2213944-6c8de76e0720 h1:PlMldvODGzwEBLRpK/mVUdrVa9LEN1cC0j5nKk5q7Jg
=
github.com/ethereum-optimism/op-geth v1.101408.0-rc.4.0.2024082
7042333-110c433a2469 h1:sGqlBjx0+z/ExU6VNo5OHSXS/5nc6BfkEQJvSdVbWp0
=
github.com/ethereum-optimism/op-geth v1.101408.0-rc.4.0.2024082
2213944-6c8de76e0720
/go.mod h1:Mk8AhvlqFbjI9oW2ymThSSoqc6kiEH0/tCmHGMEu6ac=
github.com/ethereum-optimism/op-geth v1.101408.0-rc.4.0.2024082
7042333-110c433a2469
/go.mod h1:Mk8AhvlqFbjI9oW2ymThSSoqc6kiEH0/tCmHGMEu6ac=
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20240821192748-42bd03ba8313 h1:SVSFg8ccdRBJxOdRS1pK8oIHvMufiPAQz1gkQsEPnZc=
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20240821192748-42bd03ba8313 h1:SVSFg8ccdRBJxOdRS1pK8oIHvMufiPAQz1gkQsEPnZc=
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20240821192748-42bd03ba8313/go.mod h1:XaVXL9jg8BcyOeugECgIUGa9Y3DjYJj71RHmb5qon6M=
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20240821192748-42bd03ba8313/go.mod h1:XaVXL9jg8BcyOeugECgIUGa9Y3DjYJj71RHmb5qon6M=
github.com/ethereum/c-kzg-4844 v1.0.0 h1:0X1LBXxaEtYD9xsyj9B9ctQEZIpnvVDeoBx8aHEwTNA=
github.com/ethereum/c-kzg-4844 v1.0.0 h1:0X1LBXxaEtYD9xsyj9B9ctQEZIpnvVDeoBx8aHEwTNA=
...
...
op-program/client/l2/db_test.go
View file @
a36291dc
...
@@ -131,6 +131,7 @@ func TestUpdateState(t *testing.T) {
...
@@ -131,6 +131,7 @@ func TestUpdateState(t *testing.T) {
statedb
,
err
:=
state
.
New
(
genesisBlock
.
Root
(),
state
.
NewDatabase
(
rawdb
.
NewDatabase
(
db
)),
nil
)
statedb
,
err
:=
state
.
New
(
genesisBlock
.
Root
(),
state
.
NewDatabase
(
rawdb
.
NewDatabase
(
db
)),
nil
)
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
statedb
.
MakeSinglethreaded
()
statedb
.
SetBalance
(
userAccount
,
uint256
.
NewInt
(
50
),
tracing
.
BalanceChangeUnspecified
)
statedb
.
SetBalance
(
userAccount
,
uint256
.
NewInt
(
50
),
tracing
.
BalanceChangeUnspecified
)
require
.
Equal
(
t
,
uint256
.
NewInt
(
50
),
statedb
.
GetBalance
(
userAccount
))
require
.
Equal
(
t
,
uint256
.
NewInt
(
50
),
statedb
.
GetBalance
(
userAccount
))
statedb
.
SetNonce
(
userAccount
,
uint64
(
5
))
statedb
.
SetNonce
(
userAccount
,
uint64
(
5
))
...
@@ -149,6 +150,7 @@ func TestUpdateState(t *testing.T) {
...
@@ -149,6 +150,7 @@ func TestUpdateState(t *testing.T) {
statedb
,
err
=
state
.
New
(
newRoot
,
state
.
NewDatabase
(
rawdb
.
NewDatabase
(
db
)),
nil
)
statedb
,
err
=
state
.
New
(
newRoot
,
state
.
NewDatabase
(
rawdb
.
NewDatabase
(
db
)),
nil
)
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
statedb
.
MakeSinglethreaded
()
require
.
Equal
(
t
,
uint256
.
NewInt
(
50
),
statedb
.
GetBalance
(
userAccount
))
require
.
Equal
(
t
,
uint256
.
NewInt
(
50
),
statedb
.
GetBalance
(
userAccount
))
require
.
Equal
(
t
,
uint64
(
5
),
statedb
.
GetNonce
(
userAccount
))
require
.
Equal
(
t
,
uint64
(
5
),
statedb
.
GetNonce
(
userAccount
))
require
.
Equal
(
t
,
uint256
.
NewInt
(
60
),
statedb
.
GetBalance
(
unknownAccount
))
require
.
Equal
(
t
,
uint256
.
NewInt
(
60
),
statedb
.
GetBalance
(
unknownAccount
))
...
...
op-program/client/l2/engine_backend.go
View file @
a36291dc
...
@@ -170,7 +170,12 @@ func (o *OracleBackedL2Chain) Engine() consensus.Engine {
...
@@ -170,7 +170,12 @@ func (o *OracleBackedL2Chain) Engine() consensus.Engine {
}
}
func
(
o
*
OracleBackedL2Chain
)
StateAt
(
root
common
.
Hash
)
(
*
state
.
StateDB
,
error
)
{
func
(
o
*
OracleBackedL2Chain
)
StateAt
(
root
common
.
Hash
)
(
*
state
.
StateDB
,
error
)
{
return
state
.
New
(
root
,
state
.
NewDatabase
(
rawdb
.
NewDatabase
(
o
.
db
)),
nil
)
stateDB
,
err
:=
state
.
New
(
root
,
state
.
NewDatabase
(
rawdb
.
NewDatabase
(
o
.
db
)),
nil
)
if
err
!=
nil
{
return
nil
,
err
}
stateDB
.
MakeSinglethreaded
()
return
stateDB
,
nil
}
}
func
(
o
*
OracleBackedL2Chain
)
InsertBlockWithoutSetHead
(
block
*
types
.
Block
)
error
{
func
(
o
*
OracleBackedL2Chain
)
InsertBlockWithoutSetHead
(
block
*
types
.
Block
)
error
{
...
...
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