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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

@sterraf sterraf marked this pull request as draft November 28, 2024 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant