-
Notifications
You must be signed in to change notification settings - Fork 913
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
signmessage: improve the UX of the rpc command when zbase is not a valid one #5297
signmessage: improve the UX of the rpc command when zbase is not a valid one #5297
Conversation
15d5683
to
3fbf38a
Compare
ACK 3fbf38a Just needs a changelog entry in the commit 👍 |
3fbf38a
to
abca933
Compare
I will never learn this :) added now! Was thinking that maybe having a unit test can be a good idea to avoid regression with future refactoring. What do you think? or it is meaningless? |
Maybe not a full unit test (startup time vs runtime tradeoff) but if there's a sign message test already that would be a good addition 👍 |
abca933
to
f90cdb8
Compare
Good point! I think next time I will judge also with this in mind. I expanded a |
db36d2c
to
a84ec74
Compare
a84ec74
to
6a33790
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While it's fine to refer the github bugs like you did, you should also explain the problem, and not assume that GH is accessible in future.
i.e. mention that we crash on bad zbase arg :)
…lid one Changelog-Fixed: signmessage: improve the UX of the rpc command when zbase is not a valid one Stacktrace generated with a bad `zbase` ``` lightningd: lightningd/signmessage.c:59: from_zbase32: Assertion `len == tal_bytelen(u8arr)' failed lightningd: FATAL SIGNAL 6 (version v0.11.1) 0x55b9b1b4e617 send_backtrace [...] ``` Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
6a33790
to
fd82346
Compare
Yeah! this was a terrible PR description, take me also some time to remember what was the problem! Sorry about that! |
Ack fd82346 |
This PR improves the UX of the RPC command when
zbase
is not a valid one because we have a crash on badzbase
!Fixes #5293
Signed-off-by: Vincenzo Palazzo vincenzopalazzodev@gmail.com