Skip to content
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

feat(traverse): Decode Conway block headers properly #466

Merged
merged 1 commit into from
May 24, 2024

Conversation

AndrewWestberg
Copy link
Collaborator

Updates:
Ensure we can parse block header values of 5..6 as BabbageCompatible for both Babbage and Conway eras. The previous code had a Conway header falling back and attempting to parse as AlonzoCompatible.

Refactoring:
I changed AlonzoCompatible -> ShelleyCompatible for the block headers. BlockHeaders represent forward compatibility. In other words, we only get a new category for headers named after the first Era in which it changed.

Babbage -> BabbageCompatible since it now also includes conway BlockHeaders.

So, shelley, allegra, mary, alonzo blocks contain block headers that are shelley compatible.

babbage and conway blocks contain block headers that are babbage compatible.

@AndrewWestberg AndrewWestberg requested a review from scarmuega May 24, 2024 16:31
@scarmuega scarmuega self-assigned this May 24, 2024
@scarmuega scarmuega merged commit 0c36f38 into txpipe:main May 24, 2024
@AndrewWestberg AndrewWestberg deleted the amw/conway_header_decoding branch May 25, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants