Open nfrisby opened 10 months ago
The intended check is being done, just not by the ledger rules.
For TPraos, the max major version is passed as the first argument to chainChecks
, which does not receive a Globals
argument. It is called from Consensus code, which carries its own "config" that has the value in it. Similarly for Praos, but the check itself is also in the Consensus code base (since TPraos has not been fully relocated to the Consensus repo). See the instances of the envelopeChecks
method, which is only applied to headers.
Using an up-to-date commit
I see that the non-testing code propagates
maxMajorPV
but never actually uses it.I therefore propose we remove it from the
Globals
data type.