lotus icon indicating copy to clipboard operation
lotus copied to clipboard

feat: lotus-shed: finality calculator (WIP)

Open rvagg opened this issue 1 year ago • 1 comments

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(). 🤷

rvagg avatar Jun 14 '24 13:06 rvagg

All checks have passed

github-actions[bot] avatar Jun 14 '24 13:06 github-actions[bot]