Browse Source

CoinProtocol: remove 'daemon_family' attr

The MMGen Project 4 years ago
parent
commit
6ef77e1724
2 changed files with 3 additions and 5 deletions
  1. 0 2
      mmgen/protocol.py
  2. 3 3
      mmgen/rpc.py

+ 0 - 2
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'

+ 3 - 3
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 )