-
Couldn't load subscription status.
- Fork 70
feat: Add listdescriptors RPC command
#407
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
Conversation
- Implemented a new RPC command `listdescriptors` to retrieve all descriptors from the wallet. - Added a method `get_descriptors` to the `AddressCache` struct to fetch descriptors. - Integrated the new RPC command into the JSON-RPC handler. - Ensured descriptors persist across node restarts by retrieving them from the wallet. This change allows users to view previously added descriptors, preventing duplicate entries when adding new descriptors.
|
@Davidson-Souza Pls review this PR |
|
Great job! One small thing missing is adding this command on the cli side inside |
|
@Davidson-Souza |
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.
Just some small coding quality changes and we are ready to go.
|
@Davidson-Souza Pls Review... |
|
@Davidson-Souza Pls Check again i just fix a linting error |
|
@Davidson-Souza A gentle reminder... |
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 82a5a01
What is the purpose of this pull request?
Which crates are being modified?
Description
This PR adds a new RPC command
listdescriptorsto Floresta, enabling users to retrieve a list of all descriptors currently being used by the node. This is particularly useful for preventing duplicate descriptor entries when adding new descriptors via theloaddescriptorcommand.Fixes: #403
Changes:
get_descriptorsto theAddressCachestruct to fetch descriptors from the wallet.listdescriptorsRPC command in theRpcImplstruct.