Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions clarity/src/vm/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ impl ClarityVersion {
ClarityVersion::Clarity4
}

pub const ALL: &'static [ClarityVersion] = &[
ClarityVersion::Clarity1,
ClarityVersion::Clarity2,
ClarityVersion::Clarity3,
ClarityVersion::Clarity4,
];

pub fn default_for_epoch(epoch_id: StacksEpochId) -> ClarityVersion {
match epoch_id {
StacksEpochId::Epoch10 => {
Expand Down
7 changes: 7 additions & 0 deletions stacks-common/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,13 @@ impl StacksEpochId {
StacksEpochId::Epoch32
}

pub const ALL_GTE_30: &'static [StacksEpochId] = &[
StacksEpochId::Epoch30,
StacksEpochId::Epoch31,
StacksEpochId::Epoch32,
StacksEpochId::Epoch33,
];

/// In this epoch, how should the mempool perform garbage collection?
pub fn mempool_garbage_behavior(&self) -> MempoolCollectionBehavior {
match self {
Expand Down
Loading
Loading