Skip to content

Commit

Permalink
HACK: WIP: to try ccloud deployments without breaking our geneses cache
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaste committed Oct 17, 2024
1 parent b6fcfac commit 40de561
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions nix/workbench/genesis/genesis.jq
Original file line number Diff line number Diff line change
Expand Up @@ -50,31 +50,7 @@ def profile_cli_args($p):
##
def profile_genesis_cache_key($p; $profile_file):

($p.genesis * $p.composition * $p.derived)
|
{ network_magic

, funds_balance
, per_pool_balance
, pool_coin

, n_pools
, n_bft_hosts
, n_dense_hosts
, dense_pool_density

, delegators
, utxo_stuffed
, dreps

} as $genesis_crypto_affecting_data

| $genesis_crypto_affecting_data | to_entries
| map(if .value == null
then error("FATAL: undefined key \(.key) in profile \(.profile_file)")
else null end)

| $genesis_crypto_affecting_data
($p.genesis * $p.composition)
;

def profile_genesis_cache_entry_name($p; $params_hash):
Expand All @@ -90,7 +66,7 @@ then [ "k\(.composition.n_pools)" ]
+
if .genesis.dreps != 0 then ["\(.genesis.dreps)Dr"] else [] end
+
[ "\(.derived.utxo_stuffed / 1000)kU"
[ "\(([0, .genesis.utxo] | max) / 1000)kU"
, "\($params_hash)" ]
else [ "preset"
, $profile[0].preset ]
Expand Down

0 comments on commit 40de561

Please sign in to comment.