From 5c507d7b0b0ebd4c868bbdea23f7f7cd0f5b1129 Mon Sep 17 00:00:00 2001 From: philemon Date: Tue, 1 Aug 2017 13:34:29 +0300 Subject: [PATCH] txcreate fix for Bitcoin ABC --- mmgen/tx.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mmgen/tx.py b/mmgen/tx.py index a30e8d9d..4998f77c 100755 --- a/mmgen/tx.py +++ b/mmgen/tx.py @@ -40,9 +40,12 @@ def is_wif(s): def segwit_is_active(exit_on_error=False): d = bitcoin_connection().getblockchaininfo() - if d['chain'] == 'regtest' or d['bip9_softforks']['segwit']['status'] == 'active': + if d['chain'] == 'regtest': + return True + if 'segwit' in d['bip9_softforks'] and d['bip9_softforks']['segwit']['status'] == 'active': + return True + if g.skip_segwit_active_check: return True - if g.skip_segwit_active_check: return True if exit_on_error: die(2,'Segwit not active on this chain. Exiting') else: