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

Fix re-org treatment #28

Open
junderw opened this issue Jul 28, 2023 · 0 comments
Open

Fix re-org treatment #28

junderw opened this issue Jul 28, 2023 · 0 comments
Assignees

Comments

@junderw
Copy link
Sponsor Member

junderw commented Jul 28, 2023

  1. Add new index with block height + block hash + TxHistoryRow entries for the last 100 blocks.
  2. When a reorg occurs, utilize that to clean up the TxHistoryRows and roll them back.
  3. StatsCache and UtxoCache to only cache up to 6 blocks deep. This will help prevent incorrect stats information.
    a. Not sure what the performance consequences are for this... maybe 3 blocks deep is more acceptable.
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