Skip to content

Commit

Permalink
remove mainnet conway-genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
disassembler committed Jun 20, 2024
1 parent bad7127 commit 06b323d
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 291 deletions.
2 changes: 0 additions & 2 deletions configuration/cardano/mainnet-config-new-tracing.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874",
"ByronGenesisFile": "mainnet-byron-genesis.json",
"ByronGenesisHash": "5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb",
"ConwayGenesisFile": "mainnet-conway-genesis.json",
"ConwayGenesisHash": "40bca1ded6a9cf924f4a228123c102a14ea4b9d211822aabca0b7c22cdb7431b",
"LastKnownBlockVersion-Alt": 0,
"LastKnownBlockVersion-Major": 3,
"LastKnownBlockVersion-Minor": 0,
Expand Down
274 changes: 0 additions & 274 deletions configuration/cardano/mainnet-conway-genesis.json

This file was deleted.

7 changes: 4 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
};
utils.url = "github:numtide/flake-utils";
iohkNix = {
url = "github:input-output-hk/iohk-nix";
url = "github:input-output-hk/iohk-nix/node-8.12";
inputs.nixpkgs.follows = "nixpkgs";
};
ops-lib = {
Expand Down
23 changes: 13 additions & 10 deletions nix/binary-release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,18 @@ let
[ "mainnet" "preprod" "preview" "sanchonet" ]
pkgs.cardanoLib.environments;

genesisAttrs = {
# File references point to the nix store, so we need to rewrite them
# as relative paths
ByronGenesisFile = "byron-genesis.json";
ShelleyGenesisFile = "shelley-genesis.json";
AlonzoGenesisFile = "alonzo-genesis.json";
ConwayGenesisFile = "conway-genesis.json";
};

writeConfig = name: env:
let
genesisAttrs = {
# File references point to the nix store, so we need to rewrite them
# as relative paths
ByronGenesisFile = "byron-genesis.json";
ShelleyGenesisFile = "shelley-genesis.json";
AlonzoGenesisFile = "alonzo-genesis.json";
} // lib.optionalAttrs (env.nodeConfig ? ConwayGenesisFile) {
ConwayGenesisFile = "conway-genesis.json";
};
nodeConfig = pkgs.writeText
"config.json"
(builtins.toJSON
Expand All @@ -46,7 +47,7 @@ let

# Genesis files are the same for env.nodeConfig and env.nodeConfigBp
inherit (env.nodeConfig)
ByronGenesisFile ShelleyGenesisFile AlonzoGenesisFile ConwayGenesisFile;
ByronGenesisFile ShelleyGenesisFile AlonzoGenesisFile;
in
# Format the node config file and copy the genesis files
''
Expand All @@ -63,9 +64,11 @@ let
cp -n --remove-destination -v \
"${AlonzoGenesisFile}" \
share/${name}/alonzo-genesis.json
${lib.optionalString (env.nodeConfig ? ConwayGenesisFile) ''
cp -n --remove-destination -v \
"${ConwayGenesisFile}" \
"${env.nodeConfig.ConwayGenesisFile}" \
share/${name}/conway-genesis.json
''}
'';

in pkgs.runCommand name {
Expand Down
3 changes: 2 additions & 1 deletion nix/haskell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ let
"configuration/cardano/mainnet-byron-genesis.json"
"configuration/cardano/mainnet-shelley-genesis.json"
"configuration/cardano/mainnet-alonzo-genesis.json"
"configuration/cardano/mainnet-conway-genesis.json"
# uncomment after mainnet conway genesis is finalized
#"configuration/cardano/mainnet-conway-genesis.json"
];
cardanoTestnetGoldenFiles = [
"configuration/defaults/byron-mainnet"
Expand Down

0 comments on commit 06b323d

Please sign in to comment.