Skip to main content

Questions tagged [cleanup]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer

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 ...
1 vote
0 answers

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:...
2 votes
1 answer

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 ...
2 votes
1 answer

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 ...