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

Print an error if a collator connects to a node without real-overseer #2563

Merged
merged 2 commits into from
Mar 5, 2021

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Mar 4, 2021

It's not a lot of code, and it can prevent stupid accidental mistakes.

Note that I haven't tested if this works, but it seems pretty straight-forward.

@tomaka tomaka 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 Mar 4, 2021
@tomaka tomaka requested a review from bkchr March 4, 2021 18:32
Copy link
Member

@bkchr bkchr left a comment

Choose a reason for hiding this comment

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

TY!

@ordian
Copy link
Member

ordian commented Mar 4, 2021

I didn't observe a warning when running https://github.com/paritytech/polkadot/blob/master/parachain/test-parachains/adder/collator/README.md with validators w/o real-overseer feature. Is that expected?

@xlc
Copy link
Contributor

xlc commented Mar 4, 2021

Nice. This will partially address #2546

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
@tomaka
Copy link
Contributor Author

tomaka commented Mar 5, 2021

I didn't observe a warning when running https://github.com/paritytech/polkadot/blob/master/parachain/test-parachains/adder/collator/README.md with validators w/o real-overseer feature. Is that expected?

Good question.
Did you register the parachain as well?
Basically this warning would only be printed if we reach the state where collators actually try to collate.

@ordian
Copy link
Member

ordian commented Mar 5, 2021

Nice

2021-03-05 12:39:06  Incoming collator on a node with parachains disabled. This warning is harmless and is here to warn developers that they might have
							accidentally compiled their node without the parachains features
							enabled.

@ordian ordian merged commit 193b2ff into paritytech:master Mar 5, 2021
if protocol == "/polkadot/collation/1" {
tracing::warn!(
"Incoming collator on a node with parachains disabled. This warning \
is harmless and is here to warn developers that they might have
Copy link
Member

Choose a reason for hiding this comment

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

you probably meant to use \ after everyline? but that's fine as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah

@tomaka tomaka deleted the fool-proof-collation branch March 5, 2021 12:18
ordian added a commit that referenced this pull request Mar 9, 2021
* master:
  Make Substrate deps uniform (#2589)
  Mostly, let guide reflect #2579 (#2583)
  add accountkey20 conversion impls (#2576)
  Substrate companion #8275 (#2575)
  Make warning nicer (#2569)
  Print an error if a collator connects to a node without real-overseer (#2563)
  add log message when real-overseer is enabled (#2565)
  Jaeger spans for availability distribution (#2559)
  Fix links in docs. (#2556)
  bump spec versions in kusama, polkadot and westend again (#2557)
  Guide update for availability distribution. (#2554)
  Whole subsystem test for new availability-distribution (#2552)
  Companion for `ExecuteBlock` changes in Substrate (#2548)
  Initialize telemetry earlier (#2549)
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