-
Notifications
You must be signed in to change notification settings - Fork 484
[Feature] Set test consensus heights using build flag #1131
Copy link
Copy link
Open
Description
🚀 Feature
The current approach of setting manual consensus heights using getOrInitConsensusVersionTestHeights is difficult and error-prone, because a developer needs to know ahead of time how many consensus versions a particular snarkVM/snarkOS library/network has.
Alternative easier approaches could be:
- Option A: introduce a top-level build flag which will ensure the
consensus_test_heightsfeature is enabled in the appropriate snarkVMCargo.tomlentries. Under the hood, this will automatically enable usage of the test consensus heights. - Option B: introduce a function which reads
ConsensusVersion::latest(), and then callsgetOrInitConsensusVersionTestHeightswith incrementing heights0..ConsensusVersion::latest()+1.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels