Skip to content

[Feature] Set test consensus heights using build flag #1131

@vicsn

Description

@vicsn

🚀 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_heights feature is enabled in the appropriate snarkVM Cargo.toml entries. Under the hood, this will automatically enable usage of the test consensus heights.
  • Option B: introduce a function which reads ConsensusVersion::latest(), and then calls getOrInitConsensusVersionTestHeights with incrementing heights 0..ConsensusVersion::latest()+1.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions