From fec4fcb77247ce00b5df71238b15bb83369334ce Mon Sep 17 00:00:00 2001 From: MMGen Date: Tue, 12 Feb 2019 18:06:12 +0000 Subject: [PATCH] py3port: Bitcoin ABC v0.18.8.0 compatibility fix --- mmgen/tx.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mmgen/tx.py b/mmgen/tx.py index 026fffbd..d2c9b3c1 100755 --- a/mmgen/tx.py +++ b/mmgen/tx.py @@ -86,7 +86,9 @@ def segwit_is_active(exit_on_error=False): d = g.rpch.getblockchaininfo() if d['chain'] == 'regtest': return True - if 'segwit' in d['bip9_softforks'] and d['bip9_softforks']['segwit']['status'] == 'active': + if ( 'bip9_softforks' in d + and 'segwit' in d['bip9_softforks'] + and d['bip9_softforks']['segwit']['status'] == 'active'): return True if g.skip_segwit_active_check: return True