feat(leader): use binary search for leader slot lookup
Signed-off-by: cryptodj413 <[email protected]>
Signed-off-by: cryptodj413 <[email protected]>
- Separates cost models from the rest of the parameters - Uses an object for the cost model instead of an array
Were removed when the node started only considering valid what mainnet shipped with
spec-jq gets a dijkstra) case sourcing the zero preset's dijkstra-genesis.json; spec-modular falls back to jq for dijkstra since the Nix modules don't cover it yet
The pool relays we wrote into the Shelley genesis (via `pool-relays.json` and `cardano-cli ... --relays` / `--relay-specification-file`) are only consumed by ledger-peer discovery. With ledger peers off and `publicRoots` empty, the relay records in genesis are never read. Every workbench topology disables it: - the supervisor (local / 127.0.0.1) backend gets `useLedgerAfterSlot: -1` from `cardano-topology projection-for`. - the Nomad backend hardcodes the same value (nix/workbench/backend/nomad-job.nix).
Replace 'cardano-cli byron genesis genesis' with a jq blob in spec-jq's new byron) case.
Removes genesis-byron-{jq,modular} and the genesis-byron dispatcher.
Every era's genesis file is now genesis.<era>.json everywhere: genesis.byron.json, genesis.shelley.json, genesis.alonzo.json, genesis.conway.json, genesis.dijkstra.json.
Was converging to `create-staked` output, keep `create-testnet-data` layout:
- pools-keys/poolN/{cold,kes,vrf,opcert}.{skey,vkey,cert,counter}
- stake-delegators/delegatorN/{payment,staking}.{skey,vkey}
- drep-keys/drepN/drep.{skey,vkey}
- utxo-keys/utxoN/utxo.{skey,vkey}
- genesis-keys/genesisN/key.{skey,vkey}
- delegate-keys/delegateN/{key,kes,vrf,opcert}.{skey,vkey,cert,counter}
- byron-gen-command/
Details:
- create-testnet-data drops its symlink-creation block and the `link_keys` helper (no longer needed under the native layout).
- Removes `Massage_the_key_file_layout_to_match_AWS`, `key_depl` and `key_genesis`.
Genesis file names are unchanged here.
The init head output carries only tokens (0 ADA), so fanout evaluation was always failing with HeadValueIsNotPreserved (H4). Additionally, toCommit' was unconditionally generated causing accumulator commitment mismatches (H39) when version == openVersion. - genStOpen now generates a real u0 and inflates the head output with its total value so close/fanout operations can cover snapshot outputs - genFanoutTx only generates commit UTxO when openVersion /= version, keeping the accumulator commitment in the closed datum consistent with what fanoutTx builds; returns the inflated spendableUTxO so evaluation sees the correct head input value - forAllFanout uses the returned spendableUTxO instead of getKnownUTxO stClosed - TxCost genFanoutTx returns utxoToFanout (inflated) as the lookup UTxO, fixing the same value mismatch that caused the FanOut table to be empty Signed-off-by: Sasha Bogicevic <[email protected]>