mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
coin_mvt: report mutual close outputs also
It's better to report every single utxo on close so we know when to mark a channel account as definitively closed.
This commit is contained in:
@@ -108,12 +108,12 @@ def test_closing_simple(node_factory, bitcoind, chainparams):
|
||||
expected_1 = {
|
||||
'0': [('wallet', ['deposit'], ['withdrawal'], 'A')],
|
||||
'A': [('wallet', ['deposit'], None, None), ('cid1', ['channel_open', 'opener'], ['channel_close'], 'B')],
|
||||
'B': [('wallet', ['deposit'], None, None)],
|
||||
'B': [('wallet', ['deposit'], None, None), ('external', ['to_them'], None, None)],
|
||||
}
|
||||
|
||||
expected_2 = {
|
||||
'A': [('cid1', ['channel_open'], ['channel_close'], 'B')],
|
||||
'B': [('wallet', ['deposit'], None, None)],
|
||||
'B': [('wallet', ['deposit'], None, None), ('external', ['to_them'], None, None)],
|
||||
}
|
||||
tags = check_utxos_channel(l1, [channel_id], expected_1)
|
||||
check_utxos_channel(l2, [channel_id], expected_2, tags)
|
||||
|
||||
Reference in New Issue
Block a user