pull down to refresh

Does anyone here know what LNDg uses to determine "Offchain Costs" in it's P&L stats? I was tooling around with it and noticed a HUGE spike (like twentythousandish sats) last week on a day in which my node seemingly did nothing but process a few payments for me and route a few payments for others. I'm not trying to run a profitable lightning node, but am concerned if I'm losing large amounts of sats to unexplained issues.

Are you doing (automatic) rebalances?
Offchain costs contain rebalances so this could be the issue.

reply

Nope, I've got nothing automated with my node and don't rebalance at all, aside from spending or closing channels where things seem stuck. I didn't close or open any channels that day.

reply

HTLC failures/retries, a large routed payment or routing fees you pay might be the cause. There must be a command to view all transactions from that day in more detail.

reply

Holy shit, digging into my HTLC failures is very revealing in general. Maybe it is time for me to start incorporating auto rebalances...

reply

So the fees for failed HTLC counts toward the p&l? That sounds like a bug... :)

reply