This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
client/authority-discovery: Add option to specify relevant authority set #6595
Labels
J0-enhancement
An additional feature request.
U2-some_time_soon
Issue is worth doing soon.
Z2-medium
Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase.
Today the Substrate authority discovery module retrieves the
AuthorityId
s of all validators of the current validator set from theauthorities()
runtime API.Polkadot Collators don't want to connect to all nodes within the current validator set, but instead only to those nodes that are currently assigned as validators of their parachain.
This issue suggests to make
AuthorityDiscovery
listen on a channel for incomingCommand
s where the only enum variant would beCommand::SetAuthorities(Vec<AuthorityId>)
(for now). Instead of considering all validator nodes for the peer set priority group it would then only consider the subset.The channel can be an implementation detail by wrapping it in a
AuthorityDiscoveryClient
:FAQ
Why not introduce a new method
set_authorities
on theAuthorityDiscovery
struct?The
AuthorityDiscovery
struct is spawned as aFuture
onto an executor. Thus there is no way to call such method after spawning.The text was updated successfully, but these errors were encountered: