cmdtest.py runeswap: use LTC as dest coin instead of BTC

This commit is contained in:
The MMGen Project 2026-09-02 13:52:44 +00:00
commit 783ad11532
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 7 additions and 7 deletions

View file

@ -69,7 +69,7 @@ class ThornodeRPCServer(ThornodeServer):
if txhex.startswith('0A540A52'):
res.update({'hash': '14463C716CF08A814868DB779156BCD85A1DF8EE49E924900A74482E9DEE132D'})
elif txhex.startswith('0AC1010A'):
res.update({'hash': '17F9411E48542C0DCA4D40A0DD4A1795DE6D5791A873A27CBBDC1031FE8D1BC5'})
res.update({'hash': 'BD30B8FD9FC278A26E7A81ABB36C4709260DE64087EB578900BD23CEBF11D1A2'})
return res
pat_info = (

View file

@ -28,7 +28,7 @@ class CmdTestRuneSwap(CmdTestSwapMethods, CmdTestRegtest):
bdb_wallet = True
tmpdir_nums = [57]
networks = ('btc',)
networks = ('ltc',)
passthru_opts = ('coin', 'rpc_backend')
cross_group = 'runeswap_rune'
cross_coin = 'rune'
@ -57,7 +57,7 @@ class CmdTestRuneSwap(CmdTestSwapMethods, CmdTestRegtest):
('rune_twview', ''),
),
'rune_swap': (
'swap operations (RUNE -> BTC)',
'swap operations (RUNE -> LTC)',
('rune_swaptxcreate1', ''),
('rune_swaptxsign1', ''),
('rune_swaptxsend1', ''),
@ -93,12 +93,12 @@ class CmdTestRuneSwapRune(CmdTestSwapMethods, CmdTestRune):
tmpdir_nums = [58]
input_sels_prompt = 'to spend from: '
is_helper = True
txhex_chksum = '34980b41'
txhex_chksum = '0b84cb00'
add_eth_opts = ['--bob']
cmd_group_in = CmdTestRune.cmd_group_in + (
# rune_swap:
('swaptxcreate1', 'creating a RUNE->BTC swap transaction'),
('swaptxcreate1', 'creating a RUNE->LTC swap transaction'),
('swaptxsign1', 'signing the transaction'),
('swaptxsend1', 'sending the transaction'),
('swaptxstatus1', 'getting the transaction status'),
@ -112,7 +112,7 @@ class CmdTestRuneSwapRune(CmdTestSwapMethods, CmdTestRune):
self.txhex_file = f'{self.tmpdir}/tx_dump.hex'
def swaptxcreate1(self):
t = self._swaptxcreate(['RUNE', '8.765', 'BTC'])
t = self._swaptxcreate(['RUNE', '8.765', 'LTC'])
t.expect('OK? (Y/n): ', 'y')
return self._swaptxcreate_ui_common(t, inputs='3')

View file

@ -286,7 +286,7 @@ init_tests() {
d_rune="operations for THORChain RUNE using testnet"
t_rune="
- $cmdtest_py --coin=rune rune
- $cmdtest_py runeswap
- $cmdtest_py --coin=ltc runeswap
"
[ "$SOC" ] && {