Skip to content

Commit df5b222

Browse files
authored
Merge pull request #6270 from rdeioris/feat/sip_031_coinbase
Feat/sip 031 Mint-and-transfer per tenure infrastructure
2 parents c0fc76c + b678f14 commit df5b222

File tree

11 files changed

+907
-43
lines changed

11 files changed

+907
-43
lines changed

stacks-common/src/types/mod.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,23 @@ impl StacksEpochId {
549549
),
550550
}
551551
}
552+
553+
/// Whether or not this epoch is part of the SIP-031 schedule
554+
pub fn includes_sip_031(&self) -> bool {
555+
match self {
556+
StacksEpochId::Epoch10
557+
| StacksEpochId::Epoch20
558+
| StacksEpochId::Epoch2_05
559+
| StacksEpochId::Epoch21
560+
| StacksEpochId::Epoch22
561+
| StacksEpochId::Epoch23
562+
| StacksEpochId::Epoch24
563+
| StacksEpochId::Epoch25
564+
| StacksEpochId::Epoch30
565+
| StacksEpochId::Epoch31 => false,
566+
StacksEpochId::Epoch32 => true,
567+
}
568+
}
552569
}
553570

554571
impl std::fmt::Display for StacksEpochId {

0 commit comments

Comments
 (0)