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

fix(network): correct PoolDistr and update ProtocolParam #551

Merged
merged 5 commits into from
Dec 14, 2024

Conversation

sterraf
Copy link
Contributor

@sterraf sterraf commented Nov 28, 2024

A field of the Pool struct (corresponding to the node's PoolDistr) was a naively encoded rational number Fraction; this one is indeed needed in the genesis config struct, which I renamed from Genesis to the more explicit GenesisConfig.

In the case of ProtocolParam, the ProtocolVersion is now a tuple (major, minor).

Both corrections have an impact on the examples/n2c-miniprotocols folder; two broken examples there now run smoothly. In that folder, I moved the initial Point of the block-fetching performed by do_chainsync to a more recent moment in order to be able to witness the reaching of the chain tip.

This solves #496.

@sterraf sterraf marked this pull request as draft November 28, 2024 22:58
@sterraf sterraf marked this pull request as ready for review December 2, 2024 19:16
@sterraf
Copy link
Contributor Author

sterraf commented Dec 12, 2024 via email

@scarmuega scarmuega merged commit 9747be3 into txpipe:main Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants