cmdtest.py autosign_automount: add XMR TX file to removable device
This commit is contained in:
parent
7f13c85805
commit
7bd098fd61
4 changed files with 8 additions and 5 deletions
|
|
@ -112,7 +112,7 @@ class CmdTestAutosignAutomount(CmdTestAutosignThreaded, CmdTestRegtest):
|
|||
|
||||
def add_legacy_txfiles(self):
|
||||
self.spawn(msg_only=True)
|
||||
self.tx_file_ops('copy', txfile_coins=['btc'], tx_dir='txauto_dir')
|
||||
self.tx_file_ops('copy', txfile_coins=['btc', 'xmr'], tx_dir='txauto_dir')
|
||||
return 'ok'
|
||||
|
||||
async def txview_allow_legacy(self):
|
||||
|
|
|
|||
|
|
@ -64,7 +64,8 @@ class CmdTestAutosignBase(CmdTestBase):
|
|||
('ltc', 'litecoin'),
|
||||
('eth', 'ethereum'),
|
||||
('mm1', 'ethereum'),
|
||||
('etc', 'ethereum_classic'))
|
||||
('etc', 'ethereum_classic'),
|
||||
('xmr', 'monero'))
|
||||
|
||||
def __init__(self, cfg, trunner, cfgs, spawn):
|
||||
|
||||
|
|
|
|||
|
|
@ -330,8 +330,10 @@ class CmdTestRefTX(CmdTestRef):
|
|||
'6BDB25-MM1[1.23456,50000].testnet.rawtx'
|
||||
),
|
||||
'etc': (
|
||||
'ED3848-ETC[1.2345,40000].rawtx',
|
||||
''
|
||||
'ED3848-ETC[1.2345,40000].rawtx', ''
|
||||
),
|
||||
'xmr': (
|
||||
'8BFA29-963699-XMR[0.257].rawtx', ''
|
||||
)
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ class CmdTestRefAltcoin(CmdTestRef, CmdTestBase):
|
|||
from mmgen.tx.file import MMGenTxFile
|
||||
src = CmdTestRefTX.sources['ref_tx_file']
|
||||
for coin, files in src.items():
|
||||
if coin == 'btc':
|
||||
if coin in ('btc', 'xmr'): # XMR is automount-only
|
||||
continue
|
||||
if coin == 'mm1':
|
||||
coin = 'eth'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue