From 84cdbc930b51dddab8c6fc4f78d42c64fcb770a4 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 25 Jun 2025 17:13:30 +0000 Subject: [PATCH] commands: list_channels: include "closing_txid" want to use this in regtests --- electrum/commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/electrum/commands.py b/electrum/commands.py index 90d390705..7bdd54125 100644 --- a/electrum/commands.py +++ b/electrum/commands.py @@ -1737,6 +1737,7 @@ class Commands(Logger): 'short_channel_id': format_short_channel_id(chan.short_channel_id) if chan.short_channel_id else None, 'channel_id': chan.channel_id.hex(), 'channel_point': chan.funding_outpoint.to_str(), + 'closing_txid': chan.get_closing_height()[0] if chan.get_closing_height() else None, 'state': chan.get_state().name, 'peer_state': chan.peer_state.name, 'remote_pubkey': chan.node_id.hex(), @@ -1755,6 +1756,7 @@ class Commands(Logger): 'short_channel_id': format_short_channel_id(chan.short_channel_id) if chan.short_channel_id else None, 'channel_id': chan.channel_id.hex(), 'channel_point': chan.funding_outpoint.to_str(), + 'closing_txid': chan.get_closing_height()[0] if chan.get_closing_height() else None, 'state': chan.get_state().name, } for channel_id, chan in backups ]