-
Notifications
You must be signed in to change notification settings - Fork 754
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
Bridges - add version guarding for standalone relaying of parachains and messages #5952
Conversation
bot fmt |
@bkontur https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7523999 was started for your command Comment |
@bkontur Command |
target_client: &impl Client<Self::Target>, | ||
enable_version_guard: bool, | ||
) -> relay_substrate_client::Result<()> { | ||
if enable_version_guard { |
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 would remove the enable_version_guard: bool
and move the if
outside of the function.
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.
yes, it could be all simplified, I have TODO for that here: #5923,
we have three copies of this exact function
This PR adds the ability to start version guarding when performing standalone relaying of messages and parachains.
Follow-up
fn start_relay_guards
: Bridges remove unnecessary/deprecated stuff #5923