Skip to main content

Questions tagged [cleanup]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
137 views

When to use StorageDoubleMap `clear_prefix` vs `drain_prefix`?

Hey Substrate community, there are two different methods to remove multiple items for one specific first key from a StorageDoubleMap. There is clear_prefix and drain_prefix. clear_prefix provides ...
Chralt's user avatar
  • 543
1 vote
0 answers
154 views

purge-chain for local testnets requires rococo-native feature enabled

I completed the Connect a local parachain tutorial and during cleanup purge-chain for the collator node failed: % ./target/release/parachain-collator purge-chain --base-path /tmp/parachain/alice Error:...
stano's user avatar
  • 238
2 votes
1 answer
124 views

Forked Parity pallet, didn't migrate storage, deployed to chain. How to clear original storage from the live chain?

We started a chain using pallet_collator_selection and later forked it. Both the original and the forked pallet use the LastAuthoredBlock StorageItem. We did not execute a storage migration from the ...
Garandor's user avatar
  • 121
2 votes
1 answer
66 views

Reclaim used space of a removed StorageItem on a live chain

I am changing the collator_selection pallet by removing the LastAuthoredBlock StorageItem and adding an unrelated one, so although the chain is live, no data migration is needed. What happens with the ...
Garandor's user avatar
  • 121