lotus
lotus copied to clipboard
feat: lotus-shed: finality calculator (WIP)
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(). 🤷
All checks have passed