Skip to content

Commit e38a3dc

Browse files
committed
Temporary tx-generator & genesis hacks to be able to start a cluster in dijkstra
1 parent 03582a7 commit e38a3dc

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

nix/nixos/tx-generator-service.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ let
1818
inherit (cfg.plutus) limitExecutionMem limitExecutionSteps;
1919
};
2020
targetNodes = targetNodesList cfg.targetNodes;
21-
era = capitalise cfg.era;
21+
era = capitalise
22+
(
23+
if cfg.era == "dijkstra"
24+
then # TODO: (@russoul) Get rid of this once tx-generator supports dijkstra
25+
builtins.trace "Falling back to conway era in place of dijkstra for now..." "conway"
26+
else
27+
cfg.era
28+
);
2229
inherit
2330
add_tx_size
2431
debugMode

nix/workbench/genesis/genesis.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ case "$op" in
7777
if genesis cache-test "$cache_path"; then
7878
cache_hit=t
7979
cache_hit_desc='hit'
80-
else
80+
else
8181
cache_hit=
8282
cache_hit_desc='miss'
8383
fi
@@ -691,6 +691,11 @@ genesis-create-testnet-data() {
691691
--out-dir "$dir"
692692
"${args[@]}"
693693
)
694+
if [ "$era" = "dijkstra" ]; then
695+
era="conway" # TODO: (@russoul) Get rid of this once cardano-cli supports dijkstra
696+
warn genesis "Falling back to conway in place of dijkstra for the time being..."
697+
fi
698+
# TODO Just fallback to conway + print a message to not forget to implement dira
694699
progress genesis "$(colorise cardano-cli "$era" create-testnet-data "${create_testnet_data_args[@]}")"
695700
cardano-cli "$era" genesis create-testnet-data "${create_testnet_data_args[@]}"
696701

0 commit comments

Comments
 (0)