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

Track the collation status in the collator protocol #2465

Merged
3 commits merged into from
Feb 17, 2021

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Feb 17, 2021

This pr changes the collator protocol to track the status of a
collation. This is mainly used to log the status of a collation when it
is removed to inform the user if a collation maybe never reached a validator.

This pr changes the collator protocol to track the status of a
collation. This is mainly used to log the status of a collation when it
is removed to inform the user if a collation maybe never reached a validator.
@bkchr bkchr added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Feb 17, 2021
if !state.collations.contains_key(&relay_parent) || !should_advertise {
return;
match (state.collations.get_mut(&relay_parent), should_advertise) {
(None, _) | (_, false) => return,
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Could we spread these arms with a trace why we exit? This could give us a clue why a collation wasn't advertised

@bkchr
Copy link
Member Author

bkchr commented Feb 17, 2021

bot merge

@ghost
Copy link

ghost commented Feb 17, 2021

Waiting for commit status.

@ghost ghost merged commit a05cec8 into master Feb 17, 2021
@ghost ghost deleted the bkchr-collator-protocol-messages branch February 17, 2021 18:26
This pull request was closed.
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. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants