|
@@ -67,7 +67,7 @@ def _b58chk_decode(s):
|
|
raise ValueError('_b58chk_decode(): incorrect checksum')
|
|
raise ValueError('_b58chk_decode(): incorrect checksum')
|
|
return out[:-4]
|
|
return out[:-4]
|
|
|
|
|
|
-finfo = namedtuple('fork_info',['height','hash','name','replayable'])
|
|
|
|
|
|
+_finfo = namedtuple('fork_info',['height','hash','name','replayable'])
|
|
|
|
|
|
class CoinProtocol(MMGenObject):
|
|
class CoinProtocol(MMGenObject):
|
|
|
|
|
|
@@ -81,7 +81,7 @@ class CoinProtocol(MMGenObject):
|
|
'zec': proto_info('Zcash', 2),
|
|
'zec': proto_info('Zcash', 2),
|
|
'xmr': proto_info('Monero', 4)
|
|
'xmr': proto_info('Monero', 4)
|
|
}
|
|
}
|
|
- core_coins = tuple(coins.keys()) # coins may be added by init_genonly_altcoins(), so save
|
|
|
|
|
|
+ core_coins = tuple(coins) # coins may be added by init_genonly_altcoins(), so save
|
|
|
|
|
|
class Base(MMGenObject):
|
|
class Base(MMGenObject):
|
|
base_proto = None
|
|
base_proto = None
|
|
@@ -214,8 +214,8 @@ class CoinProtocol(MMGenObject):
|
|
sighash_type = 'ALL'
|
|
sighash_type = 'ALL'
|
|
block0 = '000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f'
|
|
block0 = '000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f'
|
|
forks = [
|
|
forks = [
|
|
- finfo(478559,'00000000000000000019f112ec0a9982926f1258cdcc558dd7c3b7e5dc7fa148','BCH',False),
|
|
|
|
- finfo(None,'','B2X',True),
|
|
|
|
|
|
+ _finfo(478559,'00000000000000000019f112ec0a9982926f1258cdcc558dd7c3b7e5dc7fa148','BCH',False),
|
|
|
|
+ _finfo(None,'','B2X',True),
|
|
]
|
|
]
|
|
caps = ('rbf','segwit')
|
|
caps = ('rbf','segwit')
|
|
mmcaps = ('key','addr','rpc','tx')
|
|
mmcaps = ('key','addr','rpc','tx')
|
|
@@ -307,11 +307,10 @@ class CoinProtocol(MMGenObject):
|
|
|
|
|
|
class BitcoinCash(Bitcoin):
|
|
class BitcoinCash(Bitcoin):
|
|
is_fork_of = 'Bitcoin'
|
|
is_fork_of = 'Bitcoin'
|
|
- # TODO: assumes MSWin user installs in custom dir 'Bitcoin_ABC'
|
|
|
|
mmtypes = ('L','C')
|
|
mmtypes = ('L','C')
|
|
sighash_type = 'ALL|FORKID'
|
|
sighash_type = 'ALL|FORKID'
|
|
forks = [
|
|
forks = [
|
|
- finfo(478559,'000000000000000000651ef99cb9fcbe0dadde1d424bd9f15ff20136191a5eec','BTC',False)
|
|
|
|
|
|
+ _finfo(478559,'000000000000000000651ef99cb9fcbe0dadde1d424bd9f15ff20136191a5eec','BTC',False)
|
|
]
|
|
]
|
|
caps = ()
|
|
caps = ()
|
|
coin_amt = BCHAmt
|
|
coin_amt = BCHAmt
|
|
@@ -333,7 +332,7 @@ class CoinProtocol(MMGenObject):
|
|
coin_amt = B2XAmt
|
|
coin_amt = B2XAmt
|
|
max_tx_fee = B2XAmt('0.1')
|
|
max_tx_fee = B2XAmt('0.1')
|
|
forks = [
|
|
forks = [
|
|
- finfo(None,'','BTC',True) # activation: 494784
|
|
|
|
|
|
+ _finfo(None,'','BTC',True) # activation: 494784
|
|
]
|
|
]
|
|
ignore_daemon_version = False
|
|
ignore_daemon_version = False
|
|
|
|
|