Skip to content

Commit

Permalink
Update nix/svclib.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Jan 15, 2020
1 parent 8fc0be4 commit 350d588
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions nix/svclib.nix
Expand Up @@ -50,7 +50,7 @@ let
}) topoSpec;
};
in toFile "legacy-topology.json" (toJSON (mkTopo));

## mkFullyConnectedLocalClusterTopology
## :: String Address -> String Port -> Int PortNo -> Int Valency
## -> Topology FilePath
Expand Down Expand Up @@ -125,8 +125,6 @@ let
mkFixedGenesisOfTime = start_time: args:
pkgs.runCommand "genesis-of-${start_time}" {} ''
args=(
--real-pbft
--log-config ${../configuration/configuration-silent.yaml}
genesis
--genesis-output-dir "''${out}"
--start-time ${start_time}
Expand All @@ -138,6 +136,7 @@ let
--n-poor-addresses ${toString args.n_poors}
--protocol-magic ${toString args.protocol_magic}
--protocol-parameters-file "${args.protocol_params_file}"
--real-pbft
--secret-seed ${toString args.secret_seed}
--total-balance ${toString args.total_balance}
--use-hd-addresses
Expand Down Expand Up @@ -169,10 +168,10 @@ let
leakDelegateSigningKey = byronLegacySK:
pkgs.runCommand "migrated-leaked-secret-key.sk" {} ''
args=(
--real-pbft
--log-config ${../configuration/configuration-silent.yaml}
migrate-delegate-key-from --byron-legacy
migrate-delegate-key-from
--byron-legacy
--from ${byronLegacySK}
--real-pbft
--to $out
)
${cardano-node}/bin/cardano-cli "''${args[@]}"
Expand All @@ -183,9 +182,8 @@ let
toVerification = pbftSK:
pkgs.runCommand "key.pub" {} ''
args=(
--real-pbft
--log-config ${../configuration/configuration-silent.yaml}
signing-key-public
--real-pbft
--secret ${pbftSK}
)
${cardano-node}/bin/cardano-cli "''${args[@]}" | fgrep 'public key (base64):' | cut -d: -f2 | xargs echo -n > $out
Expand All @@ -208,8 +206,6 @@ let
pkgs.runCommand "genesis-hash" {}
''
args=(
--real-pbft
--log-config ${../configuration/configuration-silent.yaml}
print-genesis-hash
--genesis-json "${genesisFile}"
)
Expand Down

0 comments on commit 350d588

Please sign in to comment.