This is part of the coinstats index project tracked in #18000
While the review of the new UTXO set hash algorithm (MuHash) takes longer recently #19328 was merged which added the possibility to run gettxoutsetinfo
with a specific hash type. As the first type it added hash_type=none
which skips the hashing of the UTXO set altogether. This alone did not make gettxoutsetinfo
much faster but it allows the use of an index for the remaining coin statistics even before a new hashing algorithm has been added. Credit to Sjors for the idea to take this intermediate step.
Features summary:
- Users can start their node with the option
-coinstatsindex
which syncs the index in the background - After the index is synced the user can use
gettxoutsetinfo
withhash_type=none
orhash_type=muhash
and will get the response instantly out of the index - The user can specify a height or block hash when calling
gettxoutsetinfo
to see coin statistics at a specific block height