Skip to content

[pallet-balances] Add SimpleStorageUpdate to migrate balances without any additional inactive tracks#6313

Closed
dmitrylavrenov wants to merge 1 commit intoparitytech:masterfrom
humanode-network:dl-hmnd-balances-migrations-simple-storage-update
Closed

[pallet-balances] Add SimpleStorageUpdate to migrate balances without any additional inactive tracks#6313
dmitrylavrenov wants to merge 1 commit intoparitytech:masterfrom
humanode-network:dl-hmnd-balances-migrations-simple-storage-update

Conversation

@dmitrylavrenov
Copy link
Copy Markdown
Contributor

@dmitrylavrenov dmitrylavrenov commented Oct 31, 2024

During work on humanode-network/humanode#940 in our humanode codebase to update substrate related dependencies to polkadot-v0.9.43 we've faced some migration errors related to pallet-balances as the pallet's code has StorageVersion = 1 but our mainnet balances on_chain_version is still equal to 0.

We've researched current existing migration options like MigrateToTrackInactive, MigrateManyToTrackInactive and ResetInactive. So, there are no any options to do migration without including additional tracks of inactive funds. In our codebase we use own implementation to track inactive funds. As a result, it would great to have an option to do storage version update without doing additional inactive related stuff.

@dmitrylavrenov dmitrylavrenov force-pushed the dl-hmnd-balances-migrations-simple-storage-update branch from ac9609d to 382a753 Compare October 31, 2024 14:55
@dmitrylavrenov dmitrylavrenov deleted the dl-hmnd-balances-migrations-simple-storage-update branch October 31, 2024 15:43
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.

1 participant