Browse Source

fix amount_msat sign in get_history

master
ThomasV 7 years ago
parent
commit
7a0e8bb343
  1. 4
      electrum/lnworker.py

4
electrum/lnworker.py

@ -194,10 +194,10 @@ class LNWorker(PrintError):
continue continue
item = { item = {
'channel_id': bh2u(chan.channel_id), 'channel_id': bh2u(chan.channel_id),
'txid':closing_txid, 'txid': closing_txid,
'label': _('Close channel'), 'label': _('Close channel'),
'type': 'channel_closure', 'type': 'channel_closure',
'amount_msat': chan.balance(LOCAL), 'amount_msat': -chan.balance(LOCAL),
'direction': 'sent', 'direction': 'sent',
'timestamp': closing_timestamp, 'timestamp': closing_timestamp,
} }

Loading…
Cancel
Save