Is there a way to ‘snapshot’ the current state of a running node, like creating a new treestate/blockstate? (so catch-up is fast in case of a power cut or something).
You can stop the node and take a backup of the database. It is not recommended to do this while the node is running, since the treestate and blockstate could get out of sync.
I hope this answers your question.
Thanks. I was more thinking of issuing a command that would create new synchronized treestate/blockstate file and folder. Or maybe freeze the treestate/blockstate (synchronized) for a second while the underlying filesystem could create a snapshot.
But as I understand it, no such command exist (yet)?
I think this has to be a major priority. Powercut problems, stop of node for backup, is a no go, on the long term. The stop function, has some major problems, several times I have a database out of sync, and the only way to fix it is to rebuild.