fix(primitives): Probe old shelley blocks correctly (#46)
This commit is contained in:
parent
6abf87eec3
commit
82c581f3a3
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue