Ensure chain state is at threshold security level before looking for updates.

This commit is contained in:
Gav Wood
2016-12-13 21:21:07 +01:00
parent 805b8cab2c
commit 597c3a4770
4 changed files with 37 additions and 7 deletions

View File

@@ -1377,7 +1377,7 @@ impl BlockChainClient for Client {
self.registrar.lock().as_ref()
.and_then(|r| r.get_address(&(name.as_bytes().sha3()), "A").ok())
.and_then(|a| if a.is_zero() { None } else { Some(a) })
}
}
}
impl MiningBlockChainClient for Client {