rpc: Implement GetUnspentTransactionOutputSet
Requires #1075. Will also be simpler with https://github.com/btcsuite/btcd/pull/1045.
Implements a new asynchronous method to retrieve the entire UTXO set for the best chain (at the moment of calling).
I'm not entirely happy with the way the hash of the chain tip of the moment the UTXO snapshot is taken is communicated. Because gRPC allows methods to return streams, the one value could not be returned in a call. Instead, it is sent by the caller (who sends the best hash at the moment of calling) and the server returns an error if a new block was added to the blockchain in the meantime.
Idea: ScanUnspentOutputSet. Cfr the way Core implemented scantxoutset.
Hello there! Can anyone give the update on this feature please? It would be very useful to have this rpc call. Could this be implemented or are there any blocking issues to make it work? Thanks!
Yeah this is based on the gRPC implementation that I worked on in the past. I'm not doing much work on btcd anymore, but the gRPC impl is quite finished tbh. Whether it will ever land is the question :)
I'd be very happy to guide you through it if you would decide to pick it up.
@jcvernaleo (as per #1530)
- Low priority
- Enhancement
- Outdated (very)