mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 05:57:59 +01:00
Merge bitcoin/bitcoin#25504: RPC: allow to track coins by parent descriptors
a6b0c1fcc0doc: add releases notes for 25504 (listsinceblock updates) (Antoine Poinsot)0fd2d14454rpc: add an include_change parameter to listsinceblock (Antoine Poinsot)55f98d087erpc: output parent wallet descriptors for coins in listunspent (Antoine Poinsot)b724476158rpc: output wallet descriptors for received entries in listsinceblock (Antoine Poinsot)55a82eaf91wallet: allow to fetch the wallet descriptors for a given Script (Antoine Poinsot) Pull request description: Wallet descriptors are useful for applications using the Bitcoin Core wallet as a backend for tracking coins, as they allow to track coins for multiple descriptors in a single wallet. However there is no information currently given for such applications to link a coin with an imported descriptor, severely limiting the possibilities for such applications of using multiple descriptors in a single wallet. This PR outputs the matching imported descriptor(s) for a given received coin in `listsinceblock` (and friends). It comes from a need for an application i'm working on, but i think it's something any software using `bitcoind` to track multiple descriptors in a single wallet would have eventually. For instance i'm thinking about the BDK project. Currently, the way to achieve this is to import raw addresses with labels and to have your application be responsible for wallet things like the gap limit. I'll add this to the output of `listunspent` too if this gets a few Concept ACKs. ACKs for top commit: instagibbs: ACKa6b0c1fcc0achow101: re-ACKa6b0c1fcc0Tree-SHA512: 7a5850e8de98b439ddede2cb72de0208944f8cda67272e8b8037678738d55b7a5272375be808b0f7d15def4904430e089dafdcc037436858ff3292c5f8b75e37
This commit is contained in:
6
doc/release-notes-25504.md
Normal file
6
doc/release-notes-25504.md
Normal file
@@ -0,0 +1,6 @@
|
||||
Updated RPCs
|
||||
------------
|
||||
|
||||
- The `listsinceblock`, `listtransactions` and `gettransaction` output now contain a new
|
||||
`parent_descs` field for every "receive" entry.
|
||||
- A new optional `include_change` parameter was added to the `listsinceblock` command.
|
||||
Reference in New Issue
Block a user