Make authority discovery configurable (#7465)
* Make authority discovery configurable This pr makes the authority discovery configurable. So, instead of having default values for the query interval, publish interval etc this pr adds a configuration to make these values changeable. This will be useful for tests where authority discovery is required. * Update client/authority-discovery/src/worker.rs Co-authored-by:Max Inden <mail@max-inden.de> * Update client/authority-discovery/src/lib.rs Co-authored-by:
Max Inden <mail@max-inden.de> * Update client/authority-discovery/src/lib.rs Co-authored-by:
Max Inden <mail@max-inden.de> * Update client/authority-discovery/src/lib.rs Co-authored-by:
Max Inden <mail@max-inden.de> * Fix compilation * line width Co-authored-by:
Max Inden <mail@max-inden.de>
parent
1f45b445
Showing
- substrate/client/authority-discovery/src/lib.rs 79 additions, 2 deletionssubstrate/client/authority-discovery/src/lib.rs
- substrate/client/authority-discovery/src/worker.rs 11 additions, 11 deletionssubstrate/client/authority-discovery/src/worker.rs
- substrate/client/authority-discovery/src/worker/tests.rs 11 additions, 0 deletionssubstrate/client/authority-discovery/src/worker/tests.rs
Please register or sign in to comment