Skip to content

Commit

Permalink
Add DReps to the cache key only when actually present
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabedini committed Apr 30, 2024
1 parent f80121a commit 8fffcd8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nix/workbench/genesis/genesis.jq
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ then [ "k\(.composition.n_pools)" ]
else
[ "d\(.composition.dense_pool_density)" ] end
+
[ "\(.genesis.delegators / 1000)kD"
, "\(.genesis.dreps)Dr"
, "\(.derived.utxo_stuffed / 1000)kU"
[ "\(.genesis.delegators / 1000)kD" ]
+
if .genesis.dreps != 0 then ["\(.genesis.dreps)Dr"] else [] end
+
[ "\(.derived.utxo_stuffed / 1000)kU"
, "\($params_hash)" ]
else [ "preset"
, $profile[0].preset ]
Expand Down

0 comments on commit 8fffcd8

Please sign in to comment.