Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Migrate from MQCs in persisted validation data to merkle proofs #317

Merged
merged 7 commits into from
Feb 8, 2021

Conversation

pepyakin
Copy link
Contributor

@pepyakin pepyakin commented Jan 29, 2021

  • Run this locally to check if it works

@pepyakin pepyakin mentioned this pull request Jan 29, 2021
@pepyakin pepyakin marked this pull request as ready for review February 2, 2021 18:46
@pepyakin
Copy link
Contributor Author

pepyakin commented Feb 3, 2021

Some changes related to tests were lost somehow. WIP

@pepyakin
Copy link
Contributor Author

pepyakin commented Feb 3, 2021

I cannot test this locally, blocked by paritytech/polkadot#2373

I think we can still review and land this and test the whole thing asynchronously

test/relay-sproof-builder/src/lib.rs Outdated Show resolved Hide resolved
/// If there is no channel, a new default one is created.
///
/// It also updates the `hrmp_ingress_channel_index`, creating it if needed.
pub fn upsert_inbound_channel(&mut self, sender: ParaId) -> &mut AbridgedHrmpChannel {
Copy link
Member

Choose a reason for hiding this comment

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

upsert I needed to google this :D But I also got no better idea.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rust uses get_or_insert, here. Perhaps we could use it, but that seemed to me a bit overly long.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah IDK

Copy link
Member

Choose a reason for hiding this comment

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

I also thought about this, but it would probably too long as you said.

@pepyakin pepyakin merged commit e065c57 into master Feb 8, 2021
@pepyakin pepyakin deleted the ser-clean-pvd branch February 8, 2021 18:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants