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
066ad428
Commit
066ad428
authored
Aug 17, 2023
by
clabby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `FaultDisputeGame` fields to `DeployConfig`
parent
317fcb6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
config.go
op-chain-ops/genesis/config.go
+18
-0
test-deploy-config-full.json
op-chain-ops/genesis/testdata/test-deploy-config-full.json
+4
-1
No files found.
op-chain-ops/genesis/config.go
View file @
066ad428
...
...
@@ -175,6 +175,24 @@ type DeployConfig struct {
// FundDevAccounts configures whether or not to fund the dev accounts. Should only be used
// during devnet deployments.
FundDevAccounts
bool
`json:"fundDevAccounts"`
// FaultGameAbsolutePrestate is the absolute prestate of Cannon. This is computed
// by generating a proof from the 0th -> 1st instruction and grabbing the prestate from
// the output JSON. All honest challengers should agree on the setup state of the program.
// TODO(clabby): Right now, the build of the `op-program` is nondeterministic, meaning that
// the binary must be distributed in order for honest actors to agree. In the future, we'll
// look to make the build deterministic so that users may build Cannon / the `op-program`
// from source.
FaultGameAbsolutePrestate
common
.
Hash
`json:"faultGameAbsolutePrestate"`
// FaultGameMaxDepth is the maximum depth of the position tree within the fault dispute game.
// `2^{FaultGameMaxDepth}` is how many instructions the execution trace bisection game
// supports. Ideally, this should be conservatively set so that there is always enough
// room for a full Cannon trace.
FaultGameMaxDepth
uint64
`json:"faultGameMaxDepth"`
// FaultGameMaxDuration is the maximum amount of time (in seconds) that the fault dispute
// game can run for before it is ready to be resolved. Each side receives half of this value
// on their chess clock at the inception of the dispute.
FaultGameMaxDuration
uint64
`json:"faultGameMaxDuration"`
}
// Copy will deeply copy the DeployConfig. This does a JSON roundtrip to copy
...
...
op-chain-ops/genesis/testdata/test-deploy-config-full.json
View file @
066ad428
...
...
@@ -63,5 +63,8 @@
"deploymentWaitConfirmations"
:
1
,
"eip1559Denominator"
:
8
,
"eip1559Elasticity"
:
2
,
"fundDevAccounts"
:
true
"fundDevAccounts"
:
true
,
"faultGameAbsolutePrestate"
:
"0x0000000000000000000000000000000000000000000000000000000000000000"
,
"faultGameMaxDepth"
:
63
,
"faultGameMaxDuration"
:
604800
}
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