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
2491a373
Unverified
Commit
2491a373
authored
Aug 08, 2024
by
Matt Joiner
Committed by
GitHub
Aug 07, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix devnet-up when op-program/bin is missing prestate-proof.json (#11383)
parent
ec45f663
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
Makefile
Makefile
+11
-6
No files found.
Makefile
View file @
2491a373
...
@@ -137,11 +137,18 @@ reproducible-prestate: ## Builds reproducible-prestate binary
...
@@ -137,11 +137,18 @@ reproducible-prestate: ## Builds reproducible-prestate binary
make
-C
./op-program reproducible-prestate
make
-C
./op-program reproducible-prestate
.PHONY
:
reproducible-prestate
.PHONY
:
reproducible-prestate
cannon-prestate
:
op-program cannon
##
Generates prestate using cannon and op-program
# Checks if prestate outputs are missing
cannon-prestate
:
op-program/bin/prestate-proof.json
.PHONY
:
cannon-prestate
op-program/bin/prestate-proof.json
:
make generate-cannon-prestates
generate-cannon-prestates
:
op-program cannon
##
Generates prestate using cannon and op-program
./cannon/bin/cannon load-elf
--path
op-program/bin/op-program-client.elf
--out
op-program/bin/prestate.json
--meta
op-program/bin/meta.json
./cannon/bin/cannon load-elf
--path
op-program/bin/op-program-client.elf
--out
op-program/bin/prestate.json
--meta
op-program/bin/meta.json
./cannon/bin/cannon run
--proof-at
'=0'
--stop-at
'=1'
--input
op-program/bin/prestate.json
--meta
op-program/bin/meta.json
--proof-fmt
'op-program/bin/%d.json'
--output
""
./cannon/bin/cannon run
--proof-at
'=0'
--stop-at
'=1'
--input
op-program/bin/prestate.json
--meta
op-program/bin/meta.json
--proof-fmt
'op-program/bin/%d.json'
--output
""
mv
op-program/bin/0.json op-program/bin/prestate-proof.json
mv
op-program/bin/0.json op-program/bin/prestate-proof.json
.PHONY
:
cannon-prestate
.PHONY
:
generate-cannon-prestates
mod-tidy
:
##
Cleans up unused dependencies in Go modules
mod-tidy
:
##
Cleans up unused dependencies in Go modules
# Below GOPRIVATE line allows mod-tidy to be run immediately after
# Below GOPRIVATE line allows mod-tidy to be run immediately after
...
@@ -160,16 +167,14 @@ nuke: clean devnet-clean ## Completely clean the project directory
...
@@ -160,16 +167,14 @@ nuke: clean devnet-clean ## Completely clean the project directory
git clean
-Xdf
git clean
-Xdf
.PHONY
:
nuke
.PHONY
:
nuke
pre-devnet
:
submodules
##
Prepares for running a local devnet
## Prepares for running a local devnet
pre-devnet
:
submodules cannon-prestate
@
if
!
[
-x
"
$
(command -v geth)"
]
;
then
\
@
if
!
[
-x
"
$
(command -v geth)"
]
;
then
\
make install-geth
;
\
make install-geth
;
\
fi
fi
@
if
!
[
-x
"
$
(command -v eth2-testnet-genesis)"
]
;
then
\
@
if
!
[
-x
"
$
(command -v eth2-testnet-genesis)"
]
;
then
\
make install-eth2-testnet-genesis
;
\
make install-eth2-testnet-genesis
;
\
fi
fi
@
if
[
!
-e
op-program/bin
]
;
then
\
make cannon-prestate
;
\
fi
.PHONY
:
pre-devnet
.PHONY
:
pre-devnet
devnet-up
:
pre-devnet
##
Starts the local devnet
devnet-up
:
pre-devnet
##
Starts the local devnet
...
...
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