ServiceTransactionChecker::refresh_cache: allow registrar unavailable (#11126)

Return `Ok(false)` instead of `Err(...)`. Fixes regression from PR #11110.
This commit is contained in:
Toby Dimmick 2019-10-07 11:04:41 +01:00 committed by Tomasz Drwięga
parent b31bff5ce2
commit 63c7ae9a89

View File

@ -93,6 +93,10 @@ impl ServiceTransactionChecker {
// since it's not recent it won't be used anyway.
let cache = mem::replace(&mut *self.certified_addresses_cache.write(), HashMap::default());
if client.registrar_address().is_none() {
return Ok(false);
}
let contract_address_fetch = client.get_address(
SERVICE_TRANSACTION_CONTRACT_REGISTRY_NAME,
BlockId::Latest