Skip to content

Running on Preview and Preprod #268

@michalrus

Description

@michalrus

The problem

The default configuration files are only defined for Mainnet and the (now dead) Sanchonet:

The build.rs scripts also assume we’re either running on Mainnet or the (now dead) Sanchonet:

  • download(
    &client,
    "https://book.world.dev.cardano.org/environments/mainnet/byron-genesis.json",
    "mainnet-byron-genesis.json",
    ),
    download(
    &client,
    "https://book.world.dev.cardano.org/environments/mainnet/shelley-genesis.json",
    "mainnet-shelley-genesis.json",
    ),
    download(
    &client,
    "https://raw.githubusercontent.com/Hornan7/SanchoNet-Tutorials/refs/heads/main/genesis/byron-genesis.json",
    "sanchonet-byron-genesis.json",
    ),
    download(
    &client,
    "https://raw.githubusercontent.com/Hornan7/SanchoNet-Tutorials/refs/heads/main/genesis/shelley-genesis.json",
    "sanchonet-shelley-genesis.json",
    )

  • let main = "https://book.world.dev.cardano.org/environments/mainnet";
    download(main, "byron", "mainnet-byron-genesis.json", &vec![]);
    download(
    main,
    "shelley",
    "mainnet-shelley-genesis.json",
    &shelley_fix,
    );
    download(main, "alonzo", "mainnet-alonzo-genesis.json", &vec![]);
    download(main, "conway", "mainnet-conway-genesis.json", &vec![]);
    let sancho =
    "https://raw.githubusercontent.com/Hornan7/SanchoNet-Tutorials/refs/heads/main/genesis";
    download(sancho, "byron", "sanchonet-byron-genesis.json", &vec![]);
    download(
    sancho,
    "shelley",
    "sanchonet-shelley-genesis.json",
    &shelley_fix,
    );
    download(sancho, "alonzo", "sanchonet-alonzo-genesis.json", &vec![]);
    download(sancho, "conway", "sanchonet-conway-genesis.json", &vec![]);

The solution?

I could try to tweak them for the testnets, but, IMO, Preview and Preprod are popular enough to also include them in the repository.

See also this Slack thread.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions