lnworker: fee_msat is expected for all entries in history
This commit is contained in:
@@ -497,6 +497,7 @@ class LNWallet(LNWorker):
|
|||||||
'amount_msat': chan.balance(LOCAL, ctn=0),
|
'amount_msat': chan.balance(LOCAL, ctn=0),
|
||||||
'direction': 'received',
|
'direction': 'received',
|
||||||
'timestamp': funding_timestamp,
|
'timestamp': funding_timestamp,
|
||||||
|
'fee_msat': None,
|
||||||
}
|
}
|
||||||
out.append(item)
|
out.append(item)
|
||||||
if not chan.is_closed():
|
if not chan.is_closed():
|
||||||
@@ -509,6 +510,7 @@ class LNWallet(LNWorker):
|
|||||||
'amount_msat': -chan.balance_minus_outgoing_htlcs(LOCAL),
|
'amount_msat': -chan.balance_minus_outgoing_htlcs(LOCAL),
|
||||||
'direction': 'sent',
|
'direction': 'sent',
|
||||||
'timestamp': closing_timestamp,
|
'timestamp': closing_timestamp,
|
||||||
|
'fee_msat': None,
|
||||||
}
|
}
|
||||||
out.append(item)
|
out.append(item)
|
||||||
# sort by timestamp
|
# sort by timestamp
|
||||||
|
|||||||
Reference in New Issue
Block a user