-
Notifications
You must be signed in to change notification settings - Fork 76
Chore(RPC): Improve Error Messaging for Invalid Descriptors in loaddescriptor RPC #759
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
Chore(RPC): Improve Error Messaging for Invalid Descriptors in loaddescriptor RPC #759
Conversation
636514a to
5fcb8ad
Compare
jaoleal
left a comment
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.
Conpept ACK.
Thanks for doing this, just some comments.
5fcb8ad to
7191374
Compare
7191374 to
5548070
Compare
|
LGTM, can you just ammend and push to retrigger the CI ? |
Save the descriptor to the database at the end
5548070 to
3b277a9
Compare
|
I added descriptor persistence at the end of the load_descriptor function, so before returning true in the RPC, it saves the descriptor. |
|
ACK 3b277a9 |
3b277a9 to
6ed98e8
Compare
|
ACK 6ed98e8 |
Davidson-Souza
left a comment
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.
ACK 6ed98e8
Description and Notes
Error messaging for the
loaddescriptorRPC has been improved to provide more detailed feedback when a descriptor is invalid. Previously, the RPC only returned a generic "invalid descriptor" error, which was insufficient for diagnosing the actual issue. Descriptors can be invalid for many reasons: incorrect checksums, using private keys instead of public keys (which are not accepted by the project), malformed syntax, and more.Now, the specific parsing error is returned to the user, making it easier to identify and fix the problem. Additionally, documentation for the
loaddescriptorRPC has been added, including parameter descriptions and usage notes accessible via the CLI.How to verify the changes you have done?
loaddescriptorto ensure parameter descriptions and usage notes are present and accurate.