CoinProtocol: remove 'daemon_family' attr
This commit is contained in:
parent
82001409f5
commit
6ef77e1724
2 changed files with 3 additions and 5 deletions
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue