IntersectMBO / IntersectMBO/cardano-cli
[FEATURE] - Support for inject any CostModel through AlonzoGenesis in create-testnet-data CMD
- Dominant language
- Haskell
- Stars
- 71
- Forks
- 24
- Avg merge
- 23h 40m
- Merged PRs (30d)
- 14
Description
## What
We can no longer use Alonzo genesis to include "full" cost models in the costModels field. i.e. no PlutusV2 or cost models with more parameters than those that existed on Mainnet at the time of the hardfork.
As a response, starting on cardano-node-10.7.0, we can use the new `extraConfig` field to Alonzo genesis
```
"extraConfig": {
"costModel": ...
}
```
as in https://github.com/IntersectMBO/cardano-ledger/issues/5342
Anyone using `create-testnet-data` to initialize a testnet, will now use this additional field to inject costs for internals that were added after a hardfork from an external file. It would help users if we added an additional flag to `create-testnet-data`: Something like `--spec-cost-models` that will automate the process for the user.
This will also have an impact on cardano-testnet.
## Why
Creating testnets with full cost models gets more complicated and would require manually editing the genesis file(s) that are output by `create-testnet-data` after the fact.
## Personas
- [x] Performance benchmark
- [x] QA Engineers
- [x] Anyone creating testnets
- [ ] SPOs
- [ ] dApp Devs
- [ ] Exchanges
- [ ] Wallets
- [ ] 3rd party tools
- [ ] ADA holders
Contributor guide
Assessment
This issue has not been assessed yet.