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
7d0ae302
Unverified
Commit
7d0ae302
authored
Oct 21, 2022
by
mergify[bot]
Committed by
GitHub
Oct 21, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3762 from ethereum-optimism/sc/l2g-dump-fix
fix(l2g): bug in state dumper
parents
8f531f20
a5ea3d29
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
red-lemons-rhyme.md
.changeset/red-lemons-rhyme.md
+5
-0
dumper.go
l2geth/statedumper/dumper.go
+3
-2
No files found.
.changeset/red-lemons-rhyme.md
0 → 100644
View file @
7d0ae302
---
'
@eth-optimism/l2geth'
:
patch
---
Fixes a small l2geth bug when trying to dump state
l2geth/statedumper/dumper.go
View file @
7d0ae302
...
@@ -2,10 +2,11 @@ package statedumper
...
@@ -2,10 +2,11 @@ package statedumper
import
(
import
(
"fmt"
"fmt"
"github.com/ethereum-optimism/optimism/l2geth/common"
"io"
"io"
"os"
"os"
"sync"
"sync"
"github.com/ethereum-optimism/optimism/l2geth/common"
)
)
type
StateDumper
interface
{
type
StateDumper
interface
{
...
@@ -21,7 +22,7 @@ func NewStateDumper() StateDumper {
...
@@ -21,7 +22,7 @@ func NewStateDumper() StateDumper {
return
&
noopStateDumper
{}
return
&
noopStateDumper
{}
}
}
f
,
err
:=
os
.
OpenFile
(
path
,
os
.
O_APPEND
|
os
.
O_CREATE
,
0
o755
)
f
,
err
:=
os
.
OpenFile
(
path
,
os
.
O_APPEND
|
os
.
O_CREATE
|
os
.
O_WRONLY
,
0
o755
)
if
err
!=
nil
{
if
err
!=
nil
{
panic
(
err
)
panic
(
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