fix amount_msat sign in get_history
This commit is contained in:
@@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user