-
Notifications
You must be signed in to change notification settings - Fork 14
Upgrade to v0.9.40 #164
Comments
@valentinfernandez1 please take this one into account: #147 is an easy one though. |
@stiiifff , i wonder if we should perform each runtime upgrade from 0.9.37 to 0.9.40 and do not directly jump to 0.9.40. I think is not the case for these ones, but skipping versions in the runtime upgrade might lead to not run storage migrations present on specific releases. |
@hbulgarini Can you verify the last assertion about storage migrations ? this sounds a bit scary to tbh. |
it is not the case for these upgrades but anyway i would try to avoid jumping versions in the future. At least i would recommend to go to 0.9.38 (xcm v3) and maybe jump to 0.9.40. |
That's a great question, there has to be a better approach once the chain is live on rococo. It makes sense to avoid skipping versions, but it seems odd once the chain is running to create a proposal and approve it only to increase the versions (if the upgrades are done though referendums of the democracy pallet) . |
Let's upgrade to v0.9.40 in one go this time, we'll upgrade to every release after that when the chain is live. |
The upgrade requires to regenerate the weights.rs files since fn create_exchange() -> Weight {
Weight::from_parts(25_000_000, u64::MAX)
...
} Should this be done here or as part of #141 ? |
IMHO this should be done in this issue because that benchmarking setup is required for the lunch and the changes here are going to happen after it. I would recommend you to take a look at this PR for doing the migration: |
What is the current purpose of Can this be removed or should we keep it using |
@valentinfernandez1 Good question. |
I agree that at this point there is no need to replace the In the future i think it would be a nice showcase to implement a custom pallet that is able to get the randomness from the relay chain/Babe. This code can work as inspiration: fn relay_chain_state_proof() -> RelayChainStateProof {
let relay_storage_root = ParachainSystem::validation_data()
.expect("set in `set_validation_data`")
.relay_parent_storage_root;
let relay_chain_state =
ParachainSystem::relay_state_proof().expect("set in `set_validation_data`");
RelayChainStateProof::new(ParachainInfo::get(), relay_storage_root, relay_chain_state)
.expect("Invalid relay chain state proof, already constructed in `set_validation_data`")
} |
If you could add that issue, I can work on it after this task is done. |
@hbulgarini I will be creating a new branch called This means that any modifications planned to be added via the runtime upgrade can now be worked on within the |
Closed by #171, PR merged into dev branch |
Upgrade Trappist's runtime from v0.9.37 to v0.9.40.
WeightToFee
struct to charge for proof size weight. #169The text was updated successfully, but these errors were encountered: