Closed jpraynaud closed 1 month ago
Thanks for fixing the problem!
Hi @scarmuega, it looks like there are some blocks produced on Sanchonet network that are still not correctly parsed.
Here is a log extract from a Mithril node running a pallas-hardano
parser:
parse-errors-tx-sanchonet-pallas-hardano.logs.txt
From what I see the errors are due to Invalid CBOR structure
but there are several causes (at least the following ones):
unexpected type null at position XXX: expected array
decode error: invalid variant for script enum
unexpected type tag at position XXX: expected array
Let me know if I need to create another issue or re-opening this one is fine :slightly_smiling_face:
Please can you provide the file as you did before? I will take a look today
Thanks @jmhrpr, here is the list of immutable files that are concerned:
Thank you, there is a PR which can successfully decode all these blocks. Do let me know if you run into any other issues
Thanks for the fix :slightly_smiling_face:
Hi @jmhrpr @scarmuega,
I have noticed a problem in the parsing of blocks for the immutable file 06470.chunk
in Sanchonet
network.
Here is the error message that I receive:
Invalid CBOR structure: 18446744073709551615 overflows target type at position 1068: when converting u64 to u32
The immutable file is available in this snasphot
Thanks for your support :slightly_smiling_face:
Invalid CBOR structure: 18446744073709551615 overflows target type at position 1068: when converting u64 to u32
@jpraynaud fixed by #462
@jpraynaud fixed by #462
Thanks @scarmuega!
Hi @jmhrpr @scarmuega,
I have noticed another problem in the parsing of blocks for the immutable file 07271.chunk
in Sanchonet
network.
Here is the error message that I receive (which is very similar to the previous overflow you fixed):
Invalid CBOR structure: 9223372036854775807 overflows target type at position 1242: when converting u64 to u32
We are running the version 0.27.0
of pallas
.
The immutable file is available in this snasphot.
Thanks for your support!
@jpraynaud on it
@jpraynaud I sent PR #473 to increase the uint size that was failing.
Regardless, I think that the Tx with issues is not compatible with the official CDDL: https://github.com/IntersectMBO/cardano-ledger/blob/cb30d895b866ccd5d8c529212208aca0c913b9c2/eras/conway/impl/cddl-files/conway.cddl#L402C11-L402C23
The value found in the Tx is 18446744073709551615
which doesn't fit in a uint .size 2
submitted to ledger repo here: https://github.com/IntersectMBO/cardano-ledger/issues/4421
Context & versions
It looks like the blocks produced by the
8.8.0-pre
Cardano node on thesanchonet
network for theConway
era are not correctly parsed by Pallas0.23.0
Steps to reproduce
We have tried to parse the blocks from latest immutable files produced on the
sanchonet
network withpallas-hardano
andpallas-traverse
:The immutable files are available on this Mithril snapshot
Actual behavior
We have received the error:
Expected behavior
The code should not have panicked and parsed a valid
MultiEraBlock
.