minor cleanups

This commit is contained in:
The MMGen Project 2026-10-27 13:30:09 +00:00
commit a4b1e1fefe
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 7 additions and 6 deletions

View file

@ -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

View file

@ -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