tests: Fix test_wallet_restore for LTC multiwallet

This commit is contained in:
tecnovert 2024-02-05 20:40:55 +02:00
parent dbf3f8f034
commit 14577f7741

View file

@ -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])