cardano-ledger
cardano-ledger copied to clipboard
Restrict `PParamUpdates` values
Some of the PParamUpdates need their bounds tighten up. This ticket tracks these important tasks:
- [ ] - Identify which pparam updates need extra validation
- [ ] - Decide on concrete ranges for the above pparam updates
- [ ] - Implement validation for the actual
PParamUpdates
possibly with stricter deserializer or predicate checks in the rules.
There's already something in the spec for this: paramsWellFormed. There may be some changes to this once I try to prove a bunch of properties, but who knows when that happens. I think you can safely take that list for now.
Yes, that's exactly what this issue is about. Ensuring that PParamsUpdates are well formed.I just left out the details on how we need to do this. So, thank you for linking to the spec
Well formedness of PParams as defined by the spec has been implemented.
There will also be a guradrail script in place that will take care of preventing Parameter change proposals that propose values outside of ranges specified by constitution
We also fixed the types of some of the parameters to reflect their actual width as used downstream in consensus