Repository navigation
wallet: importdescriptors should output the request on error - #35224
Open
kevkevinpal wants to merge 1 commit into
Open
kevkevinpal wants to merge 1 commit into
kevkevinpal wants to merge 1 commit into
Conversation
Contributor
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
kevkevinpal
force-pushed
the
importDescriptorsPrintoutRequestOnFailure
branch
2 times, most recently
from
October 10, 2026 14:18
52e61ef to
1f10516
Compare
kevkevinpal
marked this pull request as ready for review
October 10, 2026 14:32
Contributor
Author
|
CI / 32 bit ARM (pull_request) failing seems unrelated to the change |
…is missing A missing timestamp still fails the whole call, so put the request JSON in the error so a multi-request import identifies which item failed.
kevkevinpal
force-pushed
the
importDescriptorsPrintoutRequestOnFailure
branch
from
October 24, 2026 22:09
1f10516 to
ad0c67a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Motivation
When
importdescriptorsis given multiple requests, a missingtimestampstill fails the whole call with a static error (Missing required timestamp field for key). That does not say which request failed.#34861 is merged. Other parse failures are returned per item, but a missing or invalid timestamp is still a top-level RPC error from
GetImportTimestamp.Solution
Include the failing request in that error message.
Example
Request
[ { "desc": "wpkh([abcd1234/84h/1h/0h]tpub.../0/*)#x9abc123", "timestamp": 1710000000, "active": true, "range": [0, 100] }, { "desc": "pkh(039dcc64c5c644baf0145a5f7322b16399a01a0ee2a182e3150946fe7946358247)#68u5tv65", "active": false } ]Before
{ "code": -3, "message": "Missing required timestamp field for key" }After
{ "code": -3, "message": "Missing required timestamp field for import request: {\"desc\":\"pkh(039dcc64c5c644baf0145a5f7322b16399a01a0ee2a182e3150946fe7946358247)#68u5tv65\",\"active\":false}" }