Skip to content

Commit 84cdbc9

Browse files
committed
commands: list_channels: include "closing_txid"
want to use this in regtests
1 parent b590c86 commit 84cdbc9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

electrum/commands.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,6 +1737,7 @@ async def list_channels(self, wallet: Abstract_Wallet = None):
17371737
'short_channel_id': format_short_channel_id(chan.short_channel_id) if chan.short_channel_id else None,
17381738
'channel_id': chan.channel_id.hex(),
17391739
'channel_point': chan.funding_outpoint.to_str(),
1740+
'closing_txid': chan.get_closing_height()[0] if chan.get_closing_height() else None,
17401741
'state': chan.get_state().name,
17411742
'peer_state': chan.peer_state.name,
17421743
'remote_pubkey': chan.node_id.hex(),
@@ -1755,6 +1756,7 @@ async def list_channels(self, wallet: Abstract_Wallet = None):
17551756
'short_channel_id': format_short_channel_id(chan.short_channel_id) if chan.short_channel_id else None,
17561757
'channel_id': chan.channel_id.hex(),
17571758
'channel_point': chan.funding_outpoint.to_str(),
1759+
'closing_txid': chan.get_closing_height()[0] if chan.get_closing_height() else None,
17581760
'state': chan.get_state().name,
17591761
} for channel_id, chan in backups
17601762
]

0 commit comments

Comments
 (0)