Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
[DEVOPS-1037] Enable new data layer for wallet in nix scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
disassembler committed Oct 5, 2018
1 parent 59fc4da commit 5900d25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion scripts/launch/connect-to-cluster/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
, relays ? null
, debug ? false
, disableClientAuth ? false
, useLegacyDataLayer ? false
, extraParams ? ""
, useStackBinaries ? false
, forceDontCheck ? false
Expand All @@ -31,6 +32,7 @@ with localLib;
let
ifDebug = localLib.optionalString (debug);
ifDisableClientAuth = localLib.optionalString (disableClientAuth);
walletDataLayer = if useLegacyDataLayer then "" else "--new-wallet";
env = if environment == "override"
then { inherit relays confKey confFile; }
else environments.${environment};
Expand Down Expand Up @@ -93,7 +95,7 @@ in pkgs.writeScript "${executable}-connect-to-${environment}" ''
--topology "${if topologyFile != null then topologyFile else topologyFileDefault}" \
--logs-prefix "${stateDir}/logs" \
--db-path "${stateDir}/db" ${extraParams} \
${ ifWallet "--wallet-db-path '${stateDir}/wallet-db'"} \
${ ifWallet "--wallet-db-path '${stateDir}/wallet-db' ${walletDataLayer}"} \
${ ifDebug "--wallet-debug"} \
${ ifDisableClientAuth "--no-client-auth"} \
--keyfile ${stateDir}/secret.key \
Expand Down
3 changes: 2 additions & 1 deletion scripts/launch/demo-cluster/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
, configurationKey ? "default"
, useStackBinaries ? false
, disableClientAuth ? false
, useLegacyDataLayer ? false
}:

with localLib;
Expand All @@ -28,7 +29,7 @@ let
demoClusterDeps = with pkgs; [ jq coreutils curl gnused openssl ];
allDeps = demoClusterDeps ++ (optionals (!useStackBinaries ) cardanoDeps);
walletConfig = {
inherit stateDir disableClientAuth;
inherit stateDir disableClientAuth useLegacyDataLayer;
topologyFile = walletTopologyFile;
environment = "demo";
};
Expand Down

0 comments on commit 5900d25

Please sign in to comment.