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: lotus-shed: finality calculator (WIP) #12093

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

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented Jun 14, 2024

Doesn't quite work, something wrong with the bessel library that makes it panic.

In this current form it just takes a file full of chain tipset counts. I took https://github.com/consensus-shipyard/ec-finality-calculator/blob/main/finality_calc_validator.py and put this just before the print(finality_calc_validator(chain, e, f, c, s)):

    filename = "chain.txt"
    with open(filename, 'w') as file:
        for item in chain:
            file.write("%s\n" % item)

    # Print the filename
    print(f"Chain written to: {os.path.abspath(filename)}")

Then I can run lotus-shed finality-calculator /path/to/chain.txt and 🤞 for a comparable result. But so far I just get a panic at the call to bessel.I(). 🤷

Copy link

github-actions bot commented Jun 14, 2024

All checks have passed

@rvagg rvagg force-pushed the rvagg/finality-calculator branch from b7c77ce to 17a2894 Compare June 17, 2024 23:18
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.

1 participant