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
1ed7d004
Unverified
Commit
1ed7d004
authored
Aug 03, 2023
by
OptimismBot
Committed by
GitHub
Aug 03, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6588 from ethereum-optimism/refcell/cannon-preimage-offset
feat(cannon): Proof PreimageOffset Field
parents
cc5c95b2
132348fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
run.go
cannon/cmd/run.go
+7
-5
No files found.
cannon/cmd/run.go
View file @
1ed7d004
...
@@ -91,8 +91,9 @@ type Proof struct {
...
@@ -91,8 +91,9 @@ type Proof struct {
StateData
hexutil
.
Bytes
`json:"state-data"`
StateData
hexutil
.
Bytes
`json:"state-data"`
ProofData
hexutil
.
Bytes
`json:"proof-data"`
ProofData
hexutil
.
Bytes
`json:"proof-data"`
OracleKey
hexutil
.
Bytes
`json:"oracle-key,omitempty"`
OracleKey
hexutil
.
Bytes
`json:"oracle-key,omitempty"`
OracleValue
hexutil
.
Bytes
`json:"oracle-value,omitempty"`
OracleValue
hexutil
.
Bytes
`json:"oracle-value,omitempty"`
OracleOffset
uint32
`json:"oracle-offset,omitempty"`
StepInput
hexutil
.
Bytes
`json:"step-input"`
StepInput
hexutil
.
Bytes
`json:"step-input"`
OracleInput
hexutil
.
Bytes
`json:"oracle-input"`
OracleInput
hexutil
.
Bytes
`json:"oracle-input"`
...
@@ -304,7 +305,7 @@ func Run(ctx *cli.Context) error {
...
@@ -304,7 +305,7 @@ func Run(ctx *cli.Context) error {
}
}
if
snapshotAt
(
state
)
{
if
snapshotAt
(
state
)
{
if
err
:=
writeJSON
[
*
mipsevm
.
State
]
(
fmt
.
Sprintf
(
snapshotFmt
,
step
),
state
,
false
);
err
!=
nil
{
if
err
:=
writeJSON
(
fmt
.
Sprintf
(
snapshotFmt
,
step
),
state
,
false
);
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to write state snapshot: %w"
,
err
)
return
fmt
.
Errorf
(
"failed to write state snapshot: %w"
,
err
)
}
}
}
}
...
@@ -332,8 +333,9 @@ func Run(ctx *cli.Context) error {
...
@@ -332,8 +333,9 @@ func Run(ctx *cli.Context) error {
proof
.
OracleInput
=
inp
proof
.
OracleInput
=
inp
proof
.
OracleKey
=
witness
.
PreimageKey
[
:
]
proof
.
OracleKey
=
witness
.
PreimageKey
[
:
]
proof
.
OracleValue
=
witness
.
PreimageValue
proof
.
OracleValue
=
witness
.
PreimageValue
proof
.
OracleOffset
=
witness
.
PreimageOffset
}
}
if
err
:=
writeJSON
[
*
Proof
]
(
fmt
.
Sprintf
(
proofFmt
,
step
),
proof
,
true
);
err
!=
nil
{
if
err
:=
writeJSON
(
fmt
.
Sprintf
(
proofFmt
,
step
),
proof
,
true
);
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to write proof data: %w"
,
err
)
return
fmt
.
Errorf
(
"failed to write proof data: %w"
,
err
)
}
}
}
else
{
}
else
{
...
@@ -344,7 +346,7 @@ func Run(ctx *cli.Context) error {
...
@@ -344,7 +346,7 @@ func Run(ctx *cli.Context) error {
}
}
}
}
if
err
:=
writeJSON
[
*
mipsevm
.
State
]
(
ctx
.
Path
(
RunOutputFlag
.
Name
),
state
,
true
);
err
!=
nil
{
if
err
:=
writeJSON
(
ctx
.
Path
(
RunOutputFlag
.
Name
),
state
,
true
);
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to write state output: %w"
,
err
)
return
fmt
.
Errorf
(
"failed to write state output: %w"
,
err
)
}
}
return
nil
return
nil
...
...
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