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

Complete the implementation of stakeDistr #679

Open
carlostome opened this issue Feb 5, 2025 · 0 comments
Open

Complete the implementation of stakeDistr #679

carlostome opened this issue Feb 5, 2025 · 0 comments

Comments

@carlostome
Copy link
Contributor

carlostome commented Feb 5, 2025

As per @WhatisRT comment:

Ah, this function was only partially implemented. A correct implementation would need PState, so I don't think it's a good idea to remove it.

If you want to finish the implementation, look at Fig. 37 of the Shelley spec. Note that addrPtr has now been deprecated and removed, so that part is intentionally missing. This is also one of the few places where the spec really leans into set theory, so the inverse here turns a function into a relation and performs some operations on relations. I think stakeRelation is correct in this code.

Originally posted by @WhatisRT in #670 (review)

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

No branches or pull requests

1 participant