Skip to content

Commit 6c5b9ae

Browse files
committed
workbench: generate ledger peers
1 parent 3364b3e commit 6c5b9ae

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

nix/workbench/genesis.sh

+17
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,24 @@ case "$op" in
190190
# }'
191191
# -o "$dir"/cardano-cli-execution-stats.json
192192
# )
193+
194+
jq '
195+
to_entries
196+
| map
197+
({ key: (.value.i | tostring)
198+
, value:
199+
[{ "single host name":
200+
{ dnsName: .key
201+
, port: .port
202+
}
203+
}
204+
]
205+
})
206+
| from_entries
207+
' "$node_specs" > "$dir"/pool-relays.json
208+
193209
params=(--genesis-dir "$dir"
210+
--relay-specification-file "$dir/pool-relays.json"
194211
$(jq '.cli_args.createFinalBulk | join(" ")' "$profile_json" --raw-output)
195212
)
196213
time cardano-cli genesis create-staked "${params[@]}"

0 commit comments

Comments
 (0)