mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-30 04:35:22 +08:00
feat: add new parser with fixes and improvements
Use of the new parser is gated on epoch 2.1 and the old parser is used prior to then. Resolves: #3124, #3123, #3128
This commit is contained in:
@@ -74,6 +74,12 @@ pub enum StacksEpochId {
|
||||
Epoch21 = 0x0200a,
|
||||
}
|
||||
|
||||
impl StacksEpochId {
|
||||
pub fn latest() -> StacksEpochId {
|
||||
StacksEpochId::Epoch21
|
||||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Display for StacksEpochId {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
|
||||
Reference in New Issue
Block a user