-
Notifications
You must be signed in to change notification settings - Fork 1.6k
refactor View to include finalized_number #2128
Conversation
| // we don't send the view updates here, but delay them until the next `Action::ActiveLeaves` | ||
| // otherwise it might break assumptions of some of the subsystems | ||
| // that we never send the same `ActiveLeavesUpdate` | ||
| // this is fine, we will get `Action::ActiveLeaves` on block finalization anyway |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e.g. #1741 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We get ActiveLeavesUpdates on finality also?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of deferring, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, even with 7c91559, this will not going to work if the update is empty. I'll think how to fix that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be good now 4e5ef67.
drahnr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, a couple of nits :)
rphmeier
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good, except for question about active leaves update on finality.
For #1976 we need to get finalized block number from a view update:
https://w3f.github.io/parachain-implementers-guide/node/approval/approval-distribution.html#networkbridgeeventpeerviewchange
This PR adds block_number to
OverseerSignal::BlockFinalizedand toView.Note: this alters the wire message format for parachain networking, so we after this PR is merged we would likely need to restart our testnet.