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

Expose set_reserved_peers #9960

Merged
2 commits merged into from
Oct 7, 2021
Merged

Expose set_reserved_peers #9960

2 commits merged into from
Oct 7, 2021

Conversation

eskimor
Copy link
Member

@eskimor eskimor commented Oct 7, 2021

This is actually a safer API than add/remove as remove takes addresses although it only cares about PeerIds which in the case of Polkadot resulted in a usage where we removed peers unintentionally: Because of the book keeping we did in Polkadot, which would calculate peers to be added/removed based on addresses.

With set_reserved_peers exposed, that book keeping can actually be removed from Polkadot all together - so can't become wrong 🙈 anymore.

I also removed some seemingly redundant clones.

@eskimor eskimor 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 Oct 7, 2021
@bkchr bkchr requested a review from tomaka October 7, 2021 12:47
@tomaka
Copy link
Contributor

tomaka commented Oct 7, 2021

bot merge

@ghost
Copy link

ghost commented Oct 7, 2021

Merge aborted: Checks failed for d924036

@ordian
Copy link
Member

ordian commented Oct 7, 2021

bot merge

@ghost
Copy link

ghost commented Oct 7, 2021

Waiting for commit status.

@tomaka
Copy link
Contributor

tomaka commented Oct 7, 2021

This bot really doesn't like me

@ordian
Copy link
Member

ordian commented Oct 7, 2021

This bot really doesn't like me

It's not you, it's a flaky test: https://gitlab.parity.io/parity/substrate/-/jobs/1163366

@ghost ghost merged commit 5e2b0f0 into master Oct 7, 2021
@ghost ghost deleted the rk-expose-set-reserved-peers branch October 7, 2021 14:03
This pull request was closed.
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