From 783ad11532ee415ad3f066b3fe32157c6161c6c9 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Wed, 2 Sep 2026 13:52:44 +0000 Subject: [PATCH] cmdtest.py runeswap: use LTC as dest coin instead of BTC --- test/cmdtest_d/httpd/thornode/rpc.py | 2 +- test/cmdtest_d/runeswap.py | 10 +++++----- test/test-release.d/cfg.sh | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/cmdtest_d/httpd/thornode/rpc.py b/test/cmdtest_d/httpd/thornode/rpc.py index 83f6794a..e9a409d9 100755 --- a/test/cmdtest_d/httpd/thornode/rpc.py +++ b/test/cmdtest_d/httpd/thornode/rpc.py @@ -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 = ( diff --git a/test/cmdtest_d/runeswap.py b/test/cmdtest_d/runeswap.py index af024336..72bcb1d8 100755 --- a/test/cmdtest_d/runeswap.py +++ b/test/cmdtest_d/runeswap.py @@ -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') diff --git a/test/test-release.d/cfg.sh b/test/test-release.d/cfg.sh index 6f65bd90..658a8709 100755 --- a/test/test-release.d/cfg.sh +++ b/test/test-release.d/cfg.sh @@ -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" ] && {