Check every minute whether authority-discovery key has changed (#8575)

* Check every minute whether authority-discovery key has changed

* Fix test

* Fix comment

* Use HashSet for latest_published_keys

* More fixing

* God I'm tired, sorry
This commit is contained in:
Pierre Krieger
2021-04-08 18:41:23 +02:00
committed by GitHub
parent 1f67933afc
commit 1b939bcb53
3 changed files with 44 additions and 9 deletions
@@ -294,7 +294,7 @@ fn publish_discover_cycle() {
Default::default(),
);
worker.publish_ext_addresses().await.unwrap();
worker.publish_ext_addresses(false).await.unwrap();
// Expect authority discovery to put a new record onto the dht.
assert_eq!(network.put_value_call.lock().unwrap().len(), 1);