btcd icon indicating copy to clipboard operation
btcd copied to clipboard

rpc: Implement GetUnspentTransactionOutputSet

Open stevenroose opened this issue 7 years ago • 4 comments

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.

stevenroose avatar Mar 13 '18 13:03 stevenroose

Idea: ScanUnspentOutputSet. Cfr the way Core implemented scantxoutset.

stevenroose avatar Sep 15 '18 00:09 stevenroose

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!

mitrikovsky avatar Sep 25 '18 21:09 mitrikovsky

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.

stevenroose avatar Oct 01 '18 11:10 stevenroose

@jcvernaleo (as per #1530)

  • Low priority
  • Enhancement
  • Outdated (very)

jakesylvestre avatar Mar 04 '20 14:03 jakesylvestre