mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:50:37 +00:00
wallet: importdescriptors should output the request on error #35224
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!35224
Loading…
Reference in a new issue
No description provided.
Delete branch "importDescriptorsPrintoutRequestOnFailure"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Before
After
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.
Conflicts
Reviewers, 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.
Base:
a773e1e33b349dc819b5a0edc1c7a4839dc73b48Head:
ad0c67a91e2fad45d40006dc7a3af592397bbe43Findings
Suggestions
Test a missing timestamp in a multi-request batch (test/functional/wallet_importdescriptors.py:341, head)
The updated assertion calls
test_importdesc(), which submits a one-element list and does not cover the motivating case: a valid earlier request followed by one with no timestamp. Add a direct multi-entry call and assert that the later item's safe identifier is reported.Review coverage was incomplete.
Review limitations
Full review report
CI / 32 bit ARM (pull_request) failing seems unrelated to the change