Skip to content

Fix/481 preserve data on restart#131

Open
anshalshukla wants to merge 4 commits intoblockblaz:mainfrom
anshalshuklabot:fix/481-preserve-data-on-restart
Open

Fix/481 preserve data on restart#131
anshalshukla wants to merge 4 commits intoblockblaz:mainfrom
anshalshuklabot:fix/481-preserve-data-on-restart

Conversation

@anshalshukla
Copy link
Contributor

No description provided.

g11tech and others added 2 commits January 12, 2026 18:11
…ateGenesis

The spin-node.sh script unconditionally ran 'rm -rf' on the node's data
directory every time it was invoked, even without --generateGenesis or
--cleanData flags. This wiped the RocksDB database containing finalized
chain state, forcing the node to sync from genesis on every restart.

Now the data directory is only cleaned when cleanData=true (set explicitly
via --cleanData or implicitly via --generateGenesis). Without these flags,
existing data is preserved, allowing the node to recover its finalized
state from the database on restart.

Fixes blockblaz/zeam#481
@anshalshukla anshalshukla reopened this Mar 20, 2026
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