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:
Brice Dobry
2022-05-25 14:24:48 -04:00
parent 875eb496bb
commit 9a69f6e0c6
31 changed files with 5361 additions and 307 deletions

View File

@@ -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 {