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
Improve porting documentation for legacy-only wallet RPCs #25363
Comments
Is the goal here to update the error messages to something more descriptive as well as the documentation for this RPC? Documentation update should include that the command is incompatible with descriptor wallets as well as mention the alternative to use? It looks like it is always the case that the specified wallet is a descriptor wallet if the JSONRPCError is thrown within I've never touched documentation for this project before, is it just to edit the object returned by |
There are multiple possible angles here:
Yes. |
…descriptor wallet e3609cd doc: Update importaddress mention incompatibility with descriptor wallet (BrokenProgrammer) Pull request description: This is related to #25363 and offers a small update to the error messages from `EnsureLegacyScriptPubKeyMan` and `EnsureConstLegacyScriptPubKeyMan` to mention that they only are compatible with legacy wallets. The RPC documentation for `importaddress` is also updated to mention this as well as guide the user to the alternative `importdescriptors` for cases when using descriptor wallets. I'm thinking that we can introduce a "porting guide" document mentioned in #25363 in a separate PR since I would have to make myself more familiar with the subject before being able to tackle that. ACKs for top commit: laanwj: Code review ACK e3609cd achow101: ACK e3609cd Tree-SHA512: c7a924a7283fe59dc4e04c8c8fa034c15601f0b25eff09d975e98e2e8db5268ff470336b2d978d6916af9f782f9257b840d64bd15485b1742b4a8b8bfd0bb50f
…y with descriptor wallet e3609cd doc: Update importaddress mention incompatibility with descriptor wallet (BrokenProgrammer) Pull request description: This is related to bitcoin#25363 and offers a small update to the error messages from `EnsureLegacyScriptPubKeyMan` and `EnsureConstLegacyScriptPubKeyMan` to mention that they only are compatible with legacy wallets. The RPC documentation for `importaddress` is also updated to mention this as well as guide the user to the alternative `importdescriptors` for cases when using descriptor wallets. I'm thinking that we can introduce a "porting guide" document mentioned in bitcoin#25363 in a separate PR since I would have to make myself more familiar with the subject before being able to tackle that. ACKs for top commit: laanwj: Code review ACK e3609cd achow101: ACK e3609cd Tree-SHA512: c7a924a7283fe59dc4e04c8c8fa034c15601f0b25eff09d975e98e2e8db5268ff470336b2d978d6916af9f782f9257b840d64bd15485b1742b4a8b8bfd0bb50f
Apologies for interrupting, but I feel like lost while reading your comments and stuffs [...] Kind regards. |
How can I update error messages for one of the remaining rpc's? Do they still need improvement? I've reviewed this PR and relatively know what should I do, but I'm not sure whether the changes are still needed or not. The issue was opened 8 months ago. |
@Riahiamirreza seems that #25680 aims to fix this issue. Maybe you could go there and help reviewing. |
…acy wallets 9141e43 rpc, docs: Add note for commands that supports only legacy wallets (Yusuf Sahin HAMZA) Pull request description: Refs #25363, apparently issue is not updated since over a month, so i decided to put the same `importaddress` note in #25368 to other rpc commands that needs this note. Note is added for following commands: - `importprivkey` - `importpubkey` - `importwallet` - `dumpprivkey` - `dumpwallet` - `importmulti` - `addmultisigaddress` - `sethdseed` ACKs for top commit: achow101: ACK 9141e43 Tree-SHA512: f3dc05d26577fd8dbe2bd69cb5c14ffccebacd6010402af44427b3d01be8484895dfcf33d55dfa766eadb7f9f3bae5cc4c2add3ac816a2ac60e8beb5a97527f3
…nly legacy wallets 9141e43 rpc, docs: Add note for commands that supports only legacy wallets (Yusuf Sahin HAMZA) Pull request description: Refs bitcoin#25363, apparently issue is not updated since over a month, so i decided to put the same `importaddress` note in bitcoin#25368 to other rpc commands that needs this note. Note is added for following commands: - `importprivkey` - `importpubkey` - `importwallet` - `dumpprivkey` - `dumpwallet` - `importmulti` - `addmultisigaddress` - `sethdseed` ACKs for top commit: achow101: ACK 9141e43 Tree-SHA512: f3dc05d26577fd8dbe2bd69cb5c14ffccebacd6010402af44427b3d01be8484895dfcf33d55dfa766eadb7f9f3bae5cc4c2add3ac816a2ac60e8beb5a97527f3
Yes, lgtm, thanks! |
importaddress
(and possibly other legacy-only wallet functions), when used on a descriptor wallet, return a fairly nondescript error:The RPC help of
importaddress
doesn't mention nor further explain this incompatibility, nor what alternative to use instead (e.g.importdescriptors
withaddr(X)
in this case).This potentially applies to the following RPCs:
importaddress
(done in doc: Update importaddress mention incompatibility with descriptor wallet #25368)importprivkey
importpubkey
importmulti
addmultisigaddress
dumpprivkey
getnewaddress
dumpwallet
importwallet
sethdseed
The text was updated successfully, but these errors were encountered: