Skip to content

Commit

Permalink
disable validation of rpc based calculations using tzscan
Browse files Browse the repository at this point in the history
  • Loading branch information
habanoz committed Oct 16, 2019
1 parent 761cd77 commit f3622d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/provider_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ def __init__(self, provider, verbose=False):

def newRewardApi(self, network_config, baking_address, wllt_clnt_mngr, node_url):
if self.provider == 'rpc':
return LRpcRewardApiImpl(network_config, baking_address, node_url, wllt_clnt_mngr, verbose=self.verbose)
return LRpcRewardApiImpl(network_config, baking_address, node_url, wllt_clnt_mngr, validate=False, verbose=self.verbose)
elif self.provider == 'prpc':
url_prefix = self.url_prefixes[network_config['NAME']]
return PRpcRewardApiImpl(network_config, baking_address, self.URL.format(url_prefix), verbose=self.verbose)
return PRpcRewardApiImpl(network_config, baking_address, self.URL.format(url_prefix), validate=False, verbose=self.verbose)
elif self.provider == 'tzscan':
if not self.mirror_selector:
self.init_mirror_selector(network_config)
Expand Down

0 comments on commit f3622d0

Please sign in to comment.