bisq icon indicating copy to clipboard operation
bisq copied to clipboard

Add missing snapshot creation in full DAO mode

Open HenrikJannsen opened this issue 1 year ago • 3 comments

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 avatar Jun 29 '24 07:06 HenrikJannsen

@ristein

Alternative solution

You can use the Simple File Versioning option, set the Clean out after = 0 and Keep Version = n. I have tried this method and it only deletes the older versions if it goes above n. And it does not delete files depending on days passed.

Reference Image: image

SyedMa3 avatar Jul 17 '24 17:07 SyedMa3

that won't work for me since the files created all have different names. So every file is version one.

ristein avatar Jul 17 '24 17:07 ristein

Did you find a solution to this?

xxyxxyxyx1 avatar Aug 14 '24 20:08 xxyxxyxyx1