Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Squashed commit of the following: #124

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd/puppeth/wizard_genesis_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,14 @@ func (w *wizard) makeGenesisFile() {
configFile, err := ioutil.ReadFile(w.options.filePath)
if err != nil {
fmt.Println("read file error ", err)
os.Exit(1)
return
}
var input = NewGenesisInput()
// Unmarshal our input YAML file
if err := yaml.Unmarshal(configFile, &input); err != nil {
fmt.Println("parse YAML error ", err)
os.Exit(1)
return
}
SetDefaultAfterInputRead(input)
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN chmod +x /usr/bin/puppeth
# Copy over files
ADD docker/start.sh /work/start.sh
ADD docker/start-bootnode.sh /work/start-bootnode.sh
ADD docker/puppeth.sh /work/puppeth.sh

# Create an empty pwd file
RUN touch /work/.pwd
Expand Down
2 changes: 2 additions & 0 deletions docker/puppeth.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
puppeth --file /app/generated/genesis_input.yml --out /app/generated/
Loading