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 6abf87eec3
commit 82c581f3a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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