Skip to content

Commit

Permalink
Improve compatibility between create-testnet-data and create-staked
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabedini committed Apr 30, 2024
1 parent e149320 commit f919eb8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions nix/workbench/genesis/genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ case "$op" in
ln -s "$cache_entry"/cache.key.input "$outdir"
ln -s "$cache_entry"/layout.version "$outdir"

## keys
ln -s "$cache_entry"/delegate-keys "$outdir"
ln -s "$cache_entry"/genesis-keys "$outdir"
# create-testnet-data does not create these directories if there are no keys in them
[[ -d "$dir"/delegate-keys ]] && ln -s "$cache_entry"/delegate-keys "$outdir"
[[ -d "$dir"/genesis-keys ]] && ln -s "$cache_entry"/genesis-keys "$outdir"

cp -a "$cache_entry"/node-keys "$outdir"
chmod -R go-rwx "$outdir"/node-keys
Expand Down Expand Up @@ -620,9 +620,6 @@ genesis-create-staked() {
info genesis "removing delegator keys."
rm "$dir"/stake-delegator-keys -rf

info genesis "removing dreps keys."
rm "$dir"/drep-keys -rf

info genesis "moving keys"
Massage_the_key_file_layout_to_match_AWS "$profile_json" "$node_specs" "$dir"
}
Expand Down

0 comments on commit f919eb8

Please sign in to comment.