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
b79f19fc
Commit
b79f19fc
authored
Sep 27, 2023
by
Andreas Bigger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix root claim position
parent
6433af96
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
helper.go
op-e2e/e2eutils/disputegame/helper.go
+4
-2
No files found.
op-e2e/e2eutils/disputegame/helper.go
View file @
b79f19fc
...
...
@@ -36,6 +36,9 @@ const cannonGameType uint8 = 0
const
alphabetGameDepth
=
4
const
lastAlphabetTraceIndex
=
1
<<
alphabetGameDepth
-
1
// rootPosition is the position of the root claim.
var
rootPosition
=
faultTypes
.
NewPositionFromGIndex
(
1
)
type
Status
uint8
const
(
...
...
@@ -191,8 +194,7 @@ func (h *FactoryHelper) StartCannonGameWithCorrectRoot(ctx context.Context, roll
cfg
.
Datadir
,
maxDepth
.
Uint64
(),
)
pos
:=
faultTypes
.
NewPosition
(
int
(
maxDepth
.
Uint64
()),
int
(
maxDepth
.
Uint64
()))
rootClaim
,
err
:=
provider
.
Get
(
ctx
,
pos
)
rootClaim
,
err
:=
provider
.
Get
(
ctx
,
rootPosition
)
h
.
require
.
NoError
(
err
,
"Compute correct root hash"
)
// Override the VM status to claim the root is invalid
// Otherwise creating the game will fail
...
...
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