bisq-network / bisq

A decentralized bitcoin exchange network
https://bisq.network
GNU Affero General Public License v3.0
4.63k stars 1.26k forks source link

Add missing snapshot creation in full DAO mode #7185

Open HenrikJannsen opened 3 days ago

HenrikJannsen commented 3 days ago

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.