Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start minimal relay node if relay_chain_rpc_url is set #2042

Merged
merged 2 commits into from Jan 20, 2023

Conversation

librelois
Copy link
Collaborator

What does it do?

In #1388 we mapped the new cumulus cli option relay_chain_rpc_url, believing that this was enough.
But it is also necessary to change the way the relay node is setup, which is the purpose of this PR.

What important points reviewers should know?

Is there something left for follow-up PRs?

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

What value does it bring to the blockchain users?

@librelois librelois marked this pull request as ready for review January 16, 2023 17:56
@librelois librelois added B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes D3-trivial PR contains trivial changes in a runtime directory that do not require an audit not-breaking Does not need to be mentioned in breaking changes breaking Needs to be mentioned in breaking changes and removed not-breaking Does not need to be mentioned in breaking changes labels Jan 16, 2023
Comment on lines +815 to +822
info!(
"Is collating: {}",
if config.role.is_authority() {
"yes"
} else {
"no"
}
);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is one of my favorite use cases for the ternary operator:

Suggested change
info!(
"Is collating: {}",
if config.role.is_authority() {
"yes"
} else {
"no"
}
);
info!("Is collating: {}", config.role.is_authority() ? "yes" : "no");

@librelois
Copy link
Collaborator Author

@purestakeoskar has tested a client based on this PR and it works! We should include it in the next client (v0.29.0)

@librelois librelois merged commit e41cc12 into master Jan 20, 2023
@librelois librelois deleted the elois-minimal-relay-chain-node branch January 20, 2023 13:25
imstar15 pushed a commit to OAK-Foundation/moonbeam that referenced this pull request May 16, 2023
…undation#2042)

* feat: start minimal relay node is relay_chain_rpc_url is set

* editorconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes breaking Needs to be mentioned in breaking changes 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.

None yet

2 participants