CoinProtocol: remove 'daemon_family' attr

This commit is contained in:
The MMGen Project 2020-06-13 14:35:53 +00:00
commit 6ef77e1724
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 3 additions and 5 deletions

View file

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

View file

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