frame/authority-discovery: Have authorities() return both current and next (#6788)
* frame/authority-discovery: Have authorities() return both current and next Authority address lookups on the DHT happen periodically (every 10 mintues) and are rather slow (~10 seconds). In order to smooth the transition period between two sessions, have the runtime module return both the current as well as the next authority set. Thereby the client authority module will: 1. Publish its addresses one session in advance. 2. Prefetch the addresses of authorities of the next session in advance. * frame/authority-discovery: Deduplicate authority ids * frame/authority-discovery: Don't dedup on_genesis authorities * frame/authority-discovery: Remove mut and sort on comparison in tests * frame/authority-discovery: Use BTreeSet for deduplication
Showing
- substrate/client/authority-discovery/src/worker.rs 8 additions, 8 deletionssubstrate/client/authority-discovery/src/worker.rs
- substrate/frame/authority-discovery/src/lib.rs 61 additions, 19 deletionssubstrate/frame/authority-discovery/src/lib.rs
- substrate/primitives/authority-discovery/src/lib.rs 2 additions, 2 deletionssubstrate/primitives/authority-discovery/src/lib.rs
Please register or sign in to comment