mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
liquid-compat: update coinmove check to be liquid compatible
🎉 :waterfall:
This commit is contained in:
@@ -49,7 +49,7 @@ def expected_channel_features(wumbo_channels=False, extra=[]):
|
||||
return hex_bits(features + extra)
|
||||
|
||||
|
||||
def check_coin_moves(n, account_id, expected_moves):
|
||||
def check_coin_moves(n, account_id, expected_moves, chainparams):
|
||||
moves = n.rpc.call('listcoinmoves_plugin')['coin_moves']
|
||||
node_id = n.info['id']
|
||||
acct_moves = [m for m in moves if m['account_id'] == account_id]
|
||||
@@ -62,7 +62,7 @@ def check_coin_moves(n, account_id, expected_moves):
|
||||
assert mv['debit'] == "{}msat".format(exp['debit'])
|
||||
assert mv['tag'] == exp['tag']
|
||||
assert mv['timestamp'] > 0
|
||||
assert mv['coin_type'] == 'bcrt'
|
||||
assert mv['coin_type'] == chainparams['bip173_prefix']
|
||||
# chain moves should have blockheights
|
||||
if mv['type'] == 'chain_mvt':
|
||||
assert mv['blockheight'] is not None
|
||||
|
||||
Reference in New Issue
Block a user