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
cdca6b75
Commit
cdca6b75
authored
Dec 06, 2023
by
clabby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pos localization
parent
cedfb9b7
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
outputbisectiongame.go
op-bindings/bindings/outputbisectiongame.go
+1
-1
outputbisectiongame_more.go
op-bindings/bindings/outputbisectiongame_more.go
+1
-1
semver-lock.json
packages/contracts-bedrock/semver-lock.json
+2
-2
OutputBisectionGame.sol
...ges/contracts-bedrock/src/dispute/OutputBisectionGame.sol
+5
-3
No files found.
op-bindings/bindings/outputbisectiongame.go
View file @
cdca6b75
This diff is collapsed.
Click to expand it.
op-bindings/bindings/outputbisectiongame_more.go
View file @
cdca6b75
This diff is collapsed.
Click to expand it.
packages/contracts-bedrock/semver-lock.json
View file @
cdca6b75
...
@@ -100,8 +100,8 @@
...
@@ -100,8 +100,8 @@
"sourceCodeHash"
:
"0xa995b54dce03ddf5c9c47451bd7181996b91398ad66b54ab0b8cbf582863a33e"
"sourceCodeHash"
:
"0xa995b54dce03ddf5c9c47451bd7181996b91398ad66b54ab0b8cbf582863a33e"
},
},
"src/dispute/OutputBisectionGame.sol"
:
{
"src/dispute/OutputBisectionGame.sol"
:
{
"initCodeHash"
:
"0x
4db1ded83f8584c983bc6f5d7dfcde9281ba895c793d2fd9f30571c17d93a5fd
"
,
"initCodeHash"
:
"0x
6efe83410be6fd58eb07a5297492c6a45598d1f0f84d4ec286d93beade28f40f
"
,
"sourceCodeHash"
:
"0x
6bd528d5824fe6d093141c07f5590a3c434dbb67f56ab8fa96d7b0a23dac38af
"
"sourceCodeHash"
:
"0x
1cc70ebc403581213a4853e1ef1579abeb63496d0625424fa5b9ac8351b2eeca
"
},
},
"src/legacy/DeployerWhitelist.sol"
:
{
"src/legacy/DeployerWhitelist.sol"
:
{
"initCodeHash"
:
"0x8de80fb23b26dd9d849f6328e56ea7c173cd9e9ce1f05c9beea559d1720deb3d"
,
"initCodeHash"
:
"0x8de80fb23b26dd9d849f6328e56ea7c173cd9e9ce1f05c9beea559d1720deb3d"
,
...
...
packages/contracts-bedrock/src/dispute/OutputBisectionGame.sol
View file @
cdca6b75
...
@@ -147,9 +147,11 @@ contract OutputBisectionGame is IOutputBisectionGame, Clone, ISemver {
...
@@ -147,9 +147,11 @@ contract OutputBisectionGame is IOutputBisectionGame, Clone, ISemver {
// prestate.
// prestate.
// If the step is an attack at a trace index > 0, the prestate exists elsewhere in
// If the step is an attack at a trace index > 0, the prestate exists elsewhere in
// the game state.
// the game state.
// WARN: This will not work, except for in the first execution trace bisection game!
// NOTE: We localize the `indexAtDepth` for the current execution trace subgame by finding
// We need to replace `0` with the correct starting index for the given sub-game.
// the remainder of the index at depth divided by 2 ** (MAX_GAME_DEPTH - SPLIT_DEPTH),
preStateClaim = stepPos.indexAtDepth() == 0
// which is the number of leaves in each execution trace subgame. This is so that we can
// determine whether or not the step position is represents the `ABSOLUTE_PRESTATE`.
preStateClaim = (stepPos.indexAtDepth() % (2 ** (MAX_GAME_DEPTH - SPLIT_DEPTH))) == 0
? ABSOLUTE_PRESTATE
? ABSOLUTE_PRESTATE
: findTraceAncestor(Position.wrap(Position.unwrap(parentPos) - 1), parent.parentIndex, false).claim;
: findTraceAncestor(Position.wrap(Position.unwrap(parentPos) - 1), parent.parentIndex, false).claim;
// For all attacks, the poststate is the parent claim.
// For all attacks, the poststate is the parent claim.
...
...
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