minor cleanups
This commit is contained in:
parent
96d2c1c36c
commit
a4b1e1fefe
2 changed files with 7 additions and 6 deletions
|
|
@ -382,12 +382,12 @@ class BitcoinRPCClient(RPCClient, metaclass=AsyncInit):
|
|||
|
||||
def segwit_is_active():
|
||||
for test in [
|
||||
lambda: self.cfg.test_suite and self.chain != 'regtest',
|
||||
lambda: self.cached['deploymentinfo']['deployments']['segwit']['active'],
|
||||
lambda: self.cached['blockchaininfo']['softforks']['segwit']['active'],
|
||||
lambda: self.cached['blockchaininfo']['bip9_softforks']['segwit']['status'] == 'active']:
|
||||
lambda d: self.cfg.test_suite and self.chain != 'regtest',
|
||||
lambda d: d['deploymentinfo']['deployments']['segwit']['active'],
|
||||
lambda d: d['blockchaininfo']['softforks']['segwit']['active'],
|
||||
lambda d: d['blockchaininfo']['bip9_softforks']['segwit']['status'] == 'active']:
|
||||
try:
|
||||
if test():
|
||||
if test(self.cached):
|
||||
return True
|
||||
except (TypeError, KeyError):
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -82,8 +82,9 @@ class OnlineSigned(Signed):
|
|||
|
||||
async def send(self, cfg, asi, batch=False):
|
||||
"""
|
||||
returns integer exit val to system
|
||||
returns an integer exit value to the system
|
||||
"""
|
||||
|
||||
status_exitval = None
|
||||
sent_status = None
|
||||
all_ok = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue