liquid-compat: update coinmove check to be liquid compatible

🎉 :waterfall:
This commit is contained in:
niftynei
2020-06-22 20:46:35 -05:00
committed by neil saitug
parent ba6e4b6ef2
commit 8185474bfb
5 changed files with 48 additions and 28 deletions

View File

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