Feature/updated network monitor (#604)

* Connecting to gateway with a timeout

* Added address value to InvalidAddress error

* Initial updated network monitor (does not submit results yet)

* Created client for node status api

* Changed default address to the local one

* Removed old validator client

* Renamed validator client rest to validator client

* Print conversion warnings using Display rather than Debug formattingn

* WIP for adding owner field in monitor

* Preserving changes before branch switch

* Keeping track of node owners during monitoring + using those for node status api

* Removed temporary log statement

* Dont notify node status api if good nodes are broken

* Changed default monitor interval to 5min

* Post merge issues

* Allowing dead version field in seocksrequest

* Updated monitor run interval to 15min

* Reporting gateways and mixnodes separately with the new api

* Unused imports

* Decreased testing interval to temporarily bypass the silent timeout issue

* Formattingn
This commit is contained in:
Jędrzej Stuczyński
2021-05-18 17:33:31 +01:00
committed by GitHub
parent 97156c918b
commit ea62d01e65
54 changed files with 1107 additions and 1874 deletions
+2 -2
View File
@@ -153,11 +153,11 @@ impl MixNode {
// TODO: ask DH whether this function still makes sense in ^0.10
async fn check_if_same_ip_node_exists(&mut self) -> Option<String> {
let validator_client_config = validator_client_rest::Config::new(
let validator_client_config = validator_client::Config::new(
self.config.get_validator_rest_endpoints(),
self.config.get_validator_mixnet_contract_address(),
);
let mut validator_client = validator_client_rest::Client::new(validator_client_config);
let mut validator_client = validator_client::Client::new(validator_client_config);
let existing_nodes = match validator_client.get_mix_nodes().await {
Ok(nodes) => nodes,