electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 32acc2b10e2049371b38aba875f2f830f06c4676
parent 9cdc3287c19ef9ca9ec4475b63fa51087f5066c1
Author: SomberNight <somber.night@protonmail.com>
Date:   Mon,  2 Mar 2020 04:33:13 +0100

qt channels list: show node aliases in new column

Diffstat:
Melectrum/gui/qt/channels_list.py | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/electrum/gui/qt/channels_list.py b/electrum/gui/qt/channels_list.py @@ -29,13 +29,15 @@ class ChannelsList(MyTreeView): class Columns(IntEnum): SHORT_CHANID = 0 NODE_ID = 1 - LOCAL_BALANCE = 2 - REMOTE_BALANCE = 3 - CHANNEL_STATUS = 4 + NODE_ALIAS = 2 + LOCAL_BALANCE = 3 + REMOTE_BALANCE = 4 + CHANNEL_STATUS = 5 headers = { Columns.SHORT_CHANID: _('Short Channel ID'), Columns.NODE_ID: _('Node ID'), + Columns.NODE_ALIAS: _('Node alias'), Columns.LOCAL_BALANCE: _('Local'), Columns.REMOTE_BALANCE: _('Remote'), Columns.CHANNEL_STATUS: _('Status'), @@ -65,9 +67,12 @@ class ChannelsList(MyTreeView): labels[subject] = label status = self.lnworker.get_channel_status(chan) closed = chan.is_closed() + node_info = self.lnworker.channel_db.get_node_info_for_node_id(chan.node_id) + node_alias = (node_info.alias if node_info else '') or '' return [ format_short_channel_id(chan.short_channel_id), bh2u(chan.node_id), + node_alias, '' if closed else labels[LOCAL], '' if closed else labels[REMOTE], status