Skip to content

Conversation

@rolznz
Copy link
Contributor

@rolznz rolznz commented Jan 3, 2026

Fixes #1999

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an issue where the VSS migration config value was being cleared too early in the node initialization process. The change defers clearing the migration flag until after the LDK node is successfully built, preventing the flag from being cleared if node building fails.

  • Introduced a boolean flag clearMigrateStorageConfigValue to track when the migration config should be cleared
  • Moved the config clearing logic from before node building to after successful node creation
  • Added error logging when clearing the migration config value fails

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rolznz rolznz merged commit e80261a into master Jan 5, 2026
17 checks passed
@rolznz rolznz deleted the fix/clear-ldk-migrate-storage-config branch January 5, 2026 11:11
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.

LDK failed VSS migration can leave hub in a bad state

2 participants