fix(primitives): Probe old shelley blocks correctly (#46)

This commit is contained in:
Santiago Carmuega 2022-02-10 19:06:03 -03:00 committed by GitHub
parent 769e044bad
commit 400aa9c5d2

View file

@ -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,
}