From 7a0e8bb343ad880c5df9bbe56d9d3e2c93f307a5 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 1 Mar 2019 05:29:42 +0100 Subject: [PATCH] fix amount_msat sign in get_history --- electrum/lnworker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum/lnworker.py b/electrum/lnworker.py index 58a52753c..b77868f7f 100644 --- a/electrum/lnworker.py +++ b/electrum/lnworker.py @@ -194,10 +194,10 @@ class LNWorker(PrintError): continue item = { 'channel_id': bh2u(chan.channel_id), - 'txid':closing_txid, + 'txid': closing_txid, 'label': _('Close channel'), 'type': 'channel_closure', - 'amount_msat': chan.balance(LOCAL), + 'amount_msat': -chan.balance(LOCAL), 'direction': 'sent', 'timestamp': closing_timestamp, }