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

Fix teleport accounting and add some events #3167

Merged
merged 6 commits into from
Jun 3, 2021
Merged

Conversation

gavofyork
Copy link
Member

@gavofyork gavofyork commented Jun 3, 2021

Also makes a few renames to improve comprehensibility and readability.

@gavofyork gavofyork added A0-please_review Pull request needs code review. B7-runtimenoteworthy D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed. labels Jun 3, 2021
}
}

/// Simple type used to identify messages for the purpose of reporting events. Secure if and only
/// if the message content is unique.
pub type MessageId = [u8; 32];
Copy link
Contributor

Choose a reason for hiding this comment

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

If we care about this invariant, should it be a unit type with its own constructor?

Copy link
Member Author

@gavofyork gavofyork Jun 3, 2021

Choose a reason for hiding this comment

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

I'm not sure if that's actually enforcable in a useful way. It's really about the hashing algorithm, not the datatype, and we look after that by using blake2; this just corresponds to the output of that. In any case, I don't think it should block this PR.

runtime/parachains/src/ump.rs Show resolved Hide resolved
runtime/westend/src/lib.rs Outdated Show resolved Hide resolved
@gavofyork gavofyork merged commit 093af45 into master Jun 3, 2021
@gavofyork gavofyork deleted the gav-inspectable-ump branch June 3, 2021 13:39
@mmostafas mmostafas added D1-audited 👍 PR contains changes to critical logic that has been properly reviewed and externally audited. and removed D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed. labels Jun 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. D1-audited 👍 PR contains changes to critical logic that has been properly reviewed and externally audited.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants