-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block extension data available via SHiP but not in ABI #720
Comments
As far as I can tell this isn't anything new -- other extensions aren't explicitly communicated in the ABI either. For example it seems for block header extension 0 one would need to manually know that when seeing I wonder if maybe we could change the various Alternatively we can simply include the new extension types in the ABI and leave it up to the client to manually know which types goes with which ID. |
Yeah it's not been explicit for others, but it's been possible, at least for the extensions I've needed. For example header extension 1 can be deserialized with That said, I'm not actually sure if block extension 3 has what I need (because I haven't been able to view it). I'm trying to find where the new producer schedules are coming across in savanna blocks (or headers). |
3 is a
|
Ok, so not seeing a producer schedule there. If they are not in the original |
In the |
They are in the block header extension with id 2,
Note it is a diff of the new proposer policy to the old proposer policy. The diff is created by:
|
Thanks, but now it seems we are back to the original title of the GitHub issue with a different extension. 😆 I tested every type in the ABI and I'm unable to deserialize block header extension 2. |
We will add extra types in the SHiP ABI to allow deserializing the block header extension (this is added by #783). But we decided to not add support for deserializing the block extension because of the problems introduced by the serialization of the dynamic bitset. |
It seems we have a new
block_extension
(type 3) in the SHiP stream, but I'm unable to deserialize it because it's not a type that is included in the ABI received on connecting to SHiP.I'm actually not sure if type 2 is in the ABI as I've not tried to deserialize that one, but in general it seems if data is there we should be able to deserialize it.
The text was updated successfully, but these errors were encountered: