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: pallas byron #138

Merged
merged 9 commits into from
Feb 13, 2022
Merged

feat: pallas byron #138

merged 9 commits into from
Feb 13, 2022

Conversation

rvcas
Copy link
Member

@rvcas rvcas commented Feb 8, 2022

I'm leaving this up for now as a work in progress

@@ -62,6 +64,7 @@ impl Debug for Block2EventMapper {

impl BlockObserver for Block2EventMapper {
fn on_block_received(&self, body: Vec<u8>) -> Result<(), Error> {
// byron::Block::decode_fragment(&body[..]);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@scarmuega is this where I would need to use the Byron cbor stuff?

@scarmuega
Copy link
Member

scarmuega commented Feb 10, 2022

@rvcas the latest commit adds to the n2n source the ability to handle Byron blocks and includes a placeholder for the entry point to start crawling through the inner structures.

I'm still having issues processing "epoch boundary blocks", the structure that comes as the chainsync header doesn't match what I would expect from the CDDL EbbHead structure.

I'll keep working on the above issue and on applying Byron logic to the n2c source. If you want to start working on the "crawling" of the block, you can do so in the crawl_byron.rs module.

@rvcas
Copy link
Member Author

rvcas commented Feb 10, 2022

@scarmuega thank you

@mark-stopka mark-stopka added the enhancement New feature or request label Feb 10, 2022
@scarmuega scarmuega self-assigned this Feb 13, 2022
@scarmuega scarmuega added this to the v1.2 milestone Feb 13, 2022
@scarmuega scarmuega marked this pull request as ready for review February 13, 2022 14:09
@scarmuega scarmuega merged commit 28caf3f into main Feb 13, 2022
@scarmuega scarmuega deleted the feat/pallas_byron branch February 13, 2022 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants