Skip to content

Ensure smooth upgrades after removing genesis from kvstore. #1259

@jmalicevic

Description

@jmalicevic

The work done in PR#1017 will remove the genesis file from the database. We need to ensure that a node, upgrading to a version of CometBFT with this change can smoothly do so and retrieve the file from the new location. This should be automatic.

Additionally, we should delete the file from the database if it was persisted in a previous version. This operation needs to be automatically performed on boot. If we detect the genesis file in the database, we delete it and output a warning message to the operator that this information is no longer there.

Note This can be merged only once we merge the PR removing the genesis file from the DB.

DoD:

  • Node boot up code is altered to check for the existence of the genesis file and deleting it
  • Unit tests exist to test this behaviour.
  • Changelog entry

Metadata

Metadata

Assignees

Labels

P:storage-optimizationPriority: Give operators greater control over storage and storage optimization

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions