Browse Source

tests: Fix test_wallet_restore for LTC multiwallet

tor_fixes
tecnovert 4 months ago
parent
commit
14577f7741
  1. 6
      tests/basicswap/extended/test_wallet_restore.py

6
tests/basicswap/extended/test_wallet_restore.py

@ -132,12 +132,12 @@ class Test(TestBase):
callbtcnoderpc(2, 'generatetoaddress', [num_blocks, self.btc_addr])
num_blocks = 431
self.ltc_addr = callltcnoderpc(1, 'getnewaddress', ['mining_addr', 'bech32'])
self.ltc_addr = callltcnoderpc(1, 'getnewaddress', ['mining_addr', 'bech32'], wallet='wallet.dat')
logging.info('Mining %d Litecoin blocks to %s', num_blocks, self.ltc_addr)
callltcnoderpc(1, 'generatetoaddress', [num_blocks, self.ltc_addr])
mweb_addr = callltcnoderpc(1, 'getnewaddress', ['mweb_addr', 'mweb'])
callltcnoderpc(1, 'sendtoaddress', [mweb_addr, 1])
mweb_addr = callltcnoderpc(1, 'getnewaddress', ['mweb_addr', 'mweb'], wallet='mweb')
callltcnoderpc(1, 'sendtoaddress', [mweb_addr, 1], wallet='wallet.dat')
num_blocks = 69
callltcnoderpc(1, 'generatetoaddress', [num_blocks, self.ltc_addr])

Loading…
Cancel
Save