From 6ef77e1724bc099ff86ef66d781b218c47506b7f Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sat, 13 Jun 2020 14:35:53 +0000 Subject: [PATCH] CoinProtocol: remove 'daemon_family' attr --- mmgen/protocol.py | 2 -- mmgen/rpc.py | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/mmgen/protocol.py b/mmgen/protocol.py index 0695756b..dd45b0dc 100755 --- a/mmgen/protocol.py +++ b/mmgen/protocol.py @@ -202,7 +202,6 @@ class CoinProtocol(MMGenObject): All Bitcoin code and chain forks inherit from this class """ mod_clsname = 'Bitcoin' - daemon_family = 'bitcoind' addr_ver_bytes = { '00': 'p2pkh', '05': 'p2sh' } addr_len = 20 wif_ver_num = { 'std': '80' } @@ -375,7 +374,6 @@ class CoinProtocol(MMGenObject): base_coin = 'ETH' pubkey_type = 'std' # required by DummyWIF - daemon_family = 'openethereum' coin_amt = ETHAmt max_tx_fee = ETHAmt('0.005') chain_name = 'foundation' diff --git a/mmgen/rpc.py b/mmgen/rpc.py index 8754b65a..98c474f3 100755 --- a/mmgen/rpc.py +++ b/mmgen/rpc.py @@ -587,9 +587,9 @@ async def rpc_init(proto,backend=None): from .daemon import CoinDaemon rpc = await { - 'bitcoind': BitcoinRPCClient, - 'openethereum': EthereumRPCClient, - }[proto.daemon_family]( + 'Bitcoin': BitcoinRPCClient, + 'Ethereum': EthereumRPCClient, + }[proto.base_proto]( proto = proto, daemon = CoinDaemon(proto=proto,test_suite=g.test_suite), backend = backend or opt.rpc_backend )