Fix LTC getUnspentsByAddr() returning MWEB UTXOs.

This commit is contained in:
tecnovert
2024-05-04 19:11:50 +02:00
parent 6df09a973e
commit a08bdfbdb8
4 changed files with 11 additions and 7 deletions

View File

@@ -177,8 +177,14 @@ class TestLTC(BasicSwapTest):
tx = ci1.rpc_wallet('gettransaction', [mweb_tx['txid'],])
blockhash = tx['blockhash']
block = ci1.rpc('getblock', [blockhash, 3])
block = ci1.rpc('getblock', [blockhash, 0])
block3 = ci1.rpc('getblock', [blockhash, 3])
block0 = ci1.rpc('getblock', [blockhash, 0])
require_amount: int = ci1.make_int(1)
unspent_addr = ci1.getUnspentsByAddr()
for addr, _ in unspent_addr.items():
if 'mweb1' in addr:
raise ValueError('getUnspentsByAddr should exclude mweb UTXOs.')
# TODO