Skip to content
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

Faster and simpler inflation check with coinstatsindex #139

Open
Sjors opened this issue Jun 9, 2020 · 2 comments
Open

Faster and simpler inflation check with coinstatsindex #139

Sjors opened this issue Jun 9, 2020 · 2 comments

Comments

@Sjors
Copy link
Collaborator

Sjors commented Jun 9, 2020

A proposed feature, perhaps available in Bitcoin Core v0.21, adds an index for block stats, which makes gettxoutsetinfo blazing fast. It should also allow calling it for a given block.

bitcoin/bitcoin#18000

This allows for bypassing the complicated rollback mechanics on our mirror nodes: https://github.com/BitMEXResearch/forkmonitor/blob/master/app/models/inflated_block.rb#L64

@Sjors
Copy link
Collaborator Author

Sjors commented Mar 9, 2021

bitcoin/bitcoin#19521 is making good progress.

Once merged, I should be able to rebase our (taproot wallet enabled) custom fork of Bitcoin Core, so we can start using this.

The mirror nodes and the rollback mechanism is still useful for checking validity of stale blocks.

@Sjors
Copy link
Collaborator Author

Sjors commented Apr 14, 2023

The coinstats index has been in Bitcoin Core for a while now. It's already turned on for our main 24.0.1 node. I just haven't had a chance to implement this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant