Skip to content
Commit f0376517 authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

authority-discovery: Support multiple authority ids per peer id (#10259)



* authority-discovery: Support multiple authority ids per peer id

An peer id can be mapped to multiple authority ids, because an authority id is a session key that
could be changed every session. Before this pr the internal authority discovery cache assumed that
each authority id can only be mapped to one peer id. However, this isn't true since we changed the
default implementation of the authority discovery to combine the current and next session authorities.

* Review feedback

* Update client/authority-discovery/src/worker/addr_cache.rs

Co-authored-by: default avatarAndronik Ordian <[email protected]>

* Early return on no peer ids

* Update client/authority-discovery/src/worker/addr_cache.rs

Co-authored-by: default avatarPierre Krieger <[email protected]>

* Update types in comment

* FMT

* Add warning

* Update client/authority-discovery/src/worker/addr_cache.rs

Co-authored-by: default avatarAndronik Ordian <[email protected]>

* Feedback

Co-authored-by: default avatarAndronik Ordian <[email protected]>
Co-authored-by: default avatarPierre Krieger <[email protected]>
parent 0b224d1b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment