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 and extend support for archival nodes #1959

Open
michaelsutton opened this issue Feb 24, 2022 · 0 comments
Open

Fix and extend support for archival nodes #1959

michaelsutton opened this issue Feb 24, 2022 · 0 comments

Comments

@michaelsutton
Copy link
Collaborator

Archival nodes (i.e., kaspad instances running with --archival flag) are suppose to keep all header and block data forever. However, currently if an archival node is offline for more than 3 days (aka the pruning period), it syncs using a pruning proof and as a side-effect deletes all historical data.

The following steps can be added gradually in order to make archival nodes more robust:

  1. Even if the node is offline for more than a pruning period, make sure all data is kept, despite the possible gaps. Essentially, an archival node should never delete validated data.
  2. Add a mechanism to sync missing gaps from other archival nodes (no need for proofs because history is known before and after)
  3. Some archival node maintainers do not require holding the data forever, but simply for longer periods of time (e.g., for a month for the sake of proving to a costumer a transaction was made). Add a command line flag allowing to specify an --archive-period such that data older than this period is deleted and the node has a limited-size DB and is not ever-growing.
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