From 82c581f3a3811406667cd4d290fe53bf641d2207 Mon Sep 17 00:00:00 2001 From: Santiago Carmuega Date: Thu, 10 Feb 2022 19:06:03 -0300 Subject: [PATCH] fix(primitives): Probe old shelley blocks correctly (#46) --- pallas-primitives/src/probing.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pallas-primitives/src/probing.rs b/pallas-primitives/src/probing.rs index 8065588..9d8cc27 100644 --- a/pallas-primitives/src/probing.rs +++ b/pallas-primitives/src/probing.rs @@ -26,6 +26,7 @@ pub fn probe_block_cbor(cbor: &[u8]) -> BlockInference { match tokenizer.next() { Some(Ok(Token::Array(3))) => BlockInference::Byron, + Some(Ok(Token::Array(4))) => BlockInference::Shelley, Some(Ok(Token::Array(5))) => BlockInference::Shelley, _ => BlockInference::Inconclusive, }