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

sauron: crash on fee estimation #299

Open
darosior opened this issue Sep 21, 2021 · 1 comment
Open

sauron: crash on fee estimation #299

darosior opened this issue Sep 21, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@darosior
Copy link
Member

2021-09-13T10:55:49.308Z **BROKEN** lightningd: /home/lightningd/.lightning/plugins/sauron/sauron.py error: bad response to estimatefees (bad 'result' field), response was {"jsonrpc": "2.0", "id": 113037, "error": {"code": -32600, "message": "Error while processing estimatefees: '2'", "traceback": "Traceback (most recent call last):\n  File \"/home/lightningd/.local/lib/python3.9/site-packages/pyln/client/plugin.py\", line 564, in _dispatch_request\n    result = self._exec_func(method.func, request)\n  File \"/home/lightningd/.local/lib/python3.9/site-packages/pyln/client/plugin.py\", line 549, in _exec_func\n    return func(*ba.args, **ba.kwargs)\n  File \"/home/lightningd/.lightning/plugins/sauron/sauron.py\", line 199, in estimatefees\n    very_urgent = int(feerates[\"2\"] * 10**3)\nKeyError: '2'\n"}}
@darosior darosior added the bug Something isn't working label Sep 21, 2021
@darosior darosior self-assigned this Sep 21, 2021
@darosior
Copy link
Member Author

Ok, we need to check indexes there:

plugins/sauron/sauron.py

Lines 180 to 184 in c4a1a70

# It returns sat/vB, we want sat/kVB, so multiply everything by 10**3
slow = int(feerates["144"] * 10**3)
normal = int(feerates["5"] * 10**3)
urgent = int(feerates["3"] * 10**3)
very_urgent = int(feerates["2"] * 10**3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant