Skip to content

Commit

Permalink
workbench: generate ledger peers
Browse files Browse the repository at this point in the history
  • Loading branch information
deepfire committed Aug 11, 2022
1 parent 3364b3e commit 62595bd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions nix/workbench/genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,24 @@ case "$op" in
# }'
# -o "$dir"/cardano-cli-execution-stats.json
# )

jq '
to_entries
| map
({ key: (.value.i | tostring)
, value:
[{ "single host name":
{ dnsName: .key
, port: .value.port
}
}
]
})
| from_entries
' "$node_specs" > "$dir"/pool-relays.json

params=(--genesis-dir "$dir"
--relay-specification-file "$dir/pool-relays.json"
$(jq '.cli_args.createFinalBulk | join(" ")' "$profile_json" --raw-output)
)
time cardano-cli genesis create-staked "${params[@]}"
Expand Down

0 comments on commit 62595bd

Please sign in to comment.