def is_in_tracking_wallet(self): from mmgen.globalvars import g if g.coin in ('ETH', 'ETC'): from mmgen.altcoins.eth.tw import EthereumTrackingWallet return EthereumTrackingWallet().is_in_wallet(self) from mmgen.rpc import rpc_init d = rpc_init().validateaddress(self) return d['iswatchonly'] and 'account' in d
def __init__(self, trunner, cfgs, spawn): TestSuiteBase.__init__(self, trunner, cfgs, spawn) if trunner == None or self.proto.coin.lower() not in self.networks: return self.rpc = run_session(rpc_init(self.proto)) self.lbl_id = ('account', 'label')['label_api' in self.rpc.caps] if self.proto.coin in ('BTC', 'BCH', 'LTC'): self.tx_fee = { 'btc': '0.0001', 'bch': '0.001', 'ltc': '0.01' }[self.proto.coin.lower()] self.txbump_fee = { 'btc': '123s', 'bch': '567s', 'ltc': '12345s' }[self.proto.coin.lower()]
def __init__(self, trunner, cfgs, spawn): if g.coin.lower() not in self.networks: return from mmgen.rpc import rpc_init self.rpc = run_session(rpc_init()) self.lbl_id = ('account', 'label')['label_api' in self.rpc.caps] if g.coin in ('BTC', 'BCH', 'LTC'): self.tx_fee = { 'btc': '0.0001', 'bch': '0.001', 'ltc': '0.01' }[g.coin.lower()] self.txbump_fee = { 'btc': '123s', 'bch': '567s', 'ltc': '12345s' }[g.coin.lower()] return TestSuiteBase.__init__(self, trunner, cfgs, spawn)
def is_in_tracking_wallet(self): from mmgen.rpc import rpc_init d = rpc_init().validateaddress(self) return d['iswatchonly'] and 'account' in d