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

Add missing snapshot creation in full DAO mode #7185

Conversation

HenrikJannsen
Copy link
Collaborator

@HenrikJannsen HenrikJannsen commented Jun 29, 2024

If running a full DAO node but not having Full mode for DAO Monitor activated we did not create snapshots while parsing blocks.
This was bad when doing a resync as only after parsing complete which can take very long in case of a resync from genesis there have been no blocks and state persisted. Activating Full mode for DAO Monitor would slow down parsing as at each block the dao state hash would get created.

With this PR we create snapshots if full DAO mode is activated.

However when running a full DAO node it is recommended to set --useFullModeDaoMonitor to true to ensure the linked list of dao state hashes is correct and we do not depend on data provided by seed nodes.

@HenrikJannsen HenrikJannsen force-pushed the fix-missing-snapshot-creation branch from 779ffc5 to 262840b Compare June 30, 2024 12:11
Copy link
Contributor

@djing-chan djing-chan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@alejandrogarcia83 alejandrogarcia83 added this to the v1.9.18 milestone Jul 19, 2024
Copy link
Contributor

@alejandrogarcia83 alejandrogarcia83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@alejandrogarcia83 alejandrogarcia83 merged commit 4ce102e into bisq-network:master Jul 19, 2024
3 checks passed
@HenrikJannsen HenrikJannsen deleted the fix-missing-snapshot-creation branch July 21, 2024 07:02
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

Successfully merging this pull request may close these issues.

3 participants