Skip to content

Commit

Permalink
netgoal: Use --last-part-key-round when generating a goalnet template (
Browse files Browse the repository at this point in the history
  • Loading branch information
nullun authored Jan 26, 2024
1 parent 8631960 commit b5927a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/netgoal/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@ func saveTemplateToDisk(template remote.DeployedNetworkConfig, filename string)
}

func saveGoalTemplateToDisk(template netdeploy.NetworkTemplate, filename string) error {
if lastPartKeyRound != 0 {
template.Genesis.LastPartKeyRound = lastPartKeyRound
}
f, err := os.OpenFile(filename, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600)
if err == nil {
defer f.Close()
Expand Down

0 comments on commit b5927a6

Please sign in to comment.