electrum

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

commit 7a0e8bb343ad880c5df9bbe56d9d3e2c93f307a5
parent 43d9e0460e858fa668c9d4cf46ab956865bacb4e
Author: ThomasV <thomasv@electrum.org>
Date:   Fri,  1 Mar 2019 05:29:42 +0100

fix amount_msat sign in get_history

Diffstat:
Melectrum/lnworker.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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, }