-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store and count the total number of outputs traversed when building the index #525
Conversation
If you search for an outpoint that has been spent you get the following error message on the website
Which makes sense. So the final database is an index of all UTXOs to ordinal ranges not an index of all outpoints to ordinal ranges. Maybe we should make that clearer in the code and also on the website. Is this correct?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good! We should create a general statistics table, with a dedicated enum as the key.
Just ran this on signet:
Bitcoin-cli tells me that signet only has 1.24mil utxos. Are we maybe counting something wrong? Unspendable outputs?
|
that are traversed when building the index.
Co-authored-by: Casey Rodarmor <casey@rodarmor.com>
385a269
to
e1c22ea
Compare
I'm unsure about how to properly store a single value persistently in the database. In its own table? What should the key be? Or I make a table HEIGHT_TO_NUM_OUTPUTS that tracks how many outputs there are per block and then I just add up those values in the
info
command?#487