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

Disable validation/collation protocols for normal full nodes #7601

Merged
merged 3 commits into from
Aug 14, 2023

Conversation

altonen
Copy link
Contributor

@altonen altonen commented Aug 11, 2023

If authority discovery is not enabled, Overseer is not enabled, meaning NetworkBridge is not started. Validation/collation protocols are, however, enabled even if the NetworkBridge is not started.

Currently this results in normal Polkadot full nodes advertising these protocols, accepting inbound substreams and even establishing outbound substreams for the validation protocol. Since the NetworkBridge is not started and no protocol in Substrate is interested in these protocol events, the events are relayed to all protocol handlers but are getting discarded because no installed protocol is interested in them.


I discussed these changes with @sandreim and @vstakhov and the conclusion was that it's OK to disable these for Polkadot nodes that don't start the Overseer but if there is a reason why these protocols are enabled even if Overseer is not, this PR can be closed.

If authority discovery is not enabled, `Overseer` is not enabled,
meaning `NetworkBridge` is not started. Validation/collation protocols
are, however, enabled even if the `NetworkBridge` is not started.

Currently this results in normal Polkadot full nodes advertising these
protocols, accepting inbound substreams and even establishing outbound
substreams for the validation protocol. Since the `NetworkBridge` is
not started and no protocol in Substrate is interested in these
protocol events, the events are relayed to all protocol handlers but
are getting discarded because no installed protocol is interested in them.
@altonen altonen 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. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. labels Aug 11, 2023
Copy link
Member

@eskimor eskimor left a comment

Choose a reason for hiding this comment

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

Yep, makes sense. Thank you!

@altonen
Copy link
Contributor Author

altonen commented Aug 14, 2023

bot rebase

@paritytech-processbot
Copy link

Rebased

@altonen altonen merged commit 1a50cb1 into master Aug 14, 2023
3 checks passed
@altonen altonen deleted the disable-validation-collation-for-full-nodes branch August 14, 2023 14:34
s0me0ne-unkn0wn pushed a commit that referenced this pull request Aug 15, 2023
If authority discovery is not enabled, `Overseer` is not enabled,
meaning `NetworkBridge` is not started. Validation/collation protocols
are, however, enabled even if the `NetworkBridge` is not started.

Currently this results in normal Polkadot full nodes advertising these
protocols, accepting inbound substreams and even establishing outbound
substreams for the validation protocol. Since the `NetworkBridge` is
not started and no protocol in Substrate is interested in these
protocol events, the events are relayed to all protocol handlers but
are getting discarded because no installed protocol is interested in them.

Co-authored-by: parity-processbot <>
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. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants