Save a genesis SSZ file

This commit is contained in:
Zahary Karadjov 2019-09-08 11:32:38 -04:00 committed by Jacek Sieka
parent ef92ea1321
commit 2aee749ead
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8
1 changed files with 4 additions and 0 deletions

View File

@ -869,6 +869,10 @@ when isMainModule:
Json.saveFile(config.outputGenesis.string, initialState, pretty = true)
echo "Wrote ", config.outputGenesis.string
let sszGenesis = config.outputGenesis.string.changeFileExt "ssz"
SSZ.saveFile(sszGenesis, initialState)
echo "Wrote ", sszGenesis
var
bootstrapAddress = getPersistenBootstrapAddr(
config, parseIpAddress(config.bootstrapAddress), Port config.bootstrapPort)