fix(primitives): Probe old shelley blocks correctly (#46)
This commit is contained in:
parent
769e044bad
commit
400aa9c5d2
1 changed files with 1 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ pub fn probe_block_cbor(cbor: &[u8]) -> BlockInference {
|
||||||
|
|
||||||
match tokenizer.next() {
|
match tokenizer.next() {
|
||||||
Some(Ok(Token::Array(3))) => BlockInference::Byron,
|
Some(Ok(Token::Array(3))) => BlockInference::Byron,
|
||||||
|
Some(Ok(Token::Array(4))) => BlockInference::Shelley,
|
||||||
Some(Ok(Token::Array(5))) => BlockInference::Shelley,
|
Some(Ok(Token::Array(5))) => BlockInference::Shelley,
|
||||||
_ => BlockInference::Inconclusive,
|
_ => BlockInference::Inconclusive,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue