8000 chain: handle accumulator reorg by Davidson-Souza · Pull Request #498 · vinteumorg/Floresta · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chain: handle accumulator reorg #498

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Davidson-Souza
Copy link
Collaborator

What is the purpose of this pull request?

  • Bug fix
  • Documentation update
  • New feature
  • Test
  • Other:

Which crates are being modified?

  • floresta-chain
  • floresta-cli
  • floresta-common
  • floresta-compact-filters
  • floresta-electrum
  • floresta-watch-only
  • floresta-wire
  • floresta
  • florestad
  • Other:

Description

Right now, if we ever encounter ourselves in a reorg of the chain, we will get into a corrupted state, because we won't update our accumulator for the no most-work-chain. Therefore, causing us to get stuck.

This commit adds logic to save an retrieve accumulators from different heights, allowing a full reorg of our chain.

@Davidson-Souza Davidson-Souza added bug Something isn't working consensus This changes something inside our consensus implementation labels May 26, 2025
Right now, if we ever encounter ourselves in a reorg of the chain, we
will get into a corrupted state, because we won't update our accumulator
for the no most-work-chain. Therefore, causing us to get stuck.

This commit adds logic to save an retrieve accumulators from different
heights, allowing a full reorg of our chain.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working consensus This changes something inside our consensus implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0