v1.17.2
Focused follow-up to the v1.17.0/1.17.1 Lightning P&L work.
New
- Lightning payouts are deduced (#343). Ocean's payout API turns out not to report Lightning payouts at all (confirmed by Ocean support), so anyone paid over Lightning saw a too-low "collected" figure and an inflated loss rate. The daemon now deduces those payouts from your unpaid earnings dropping to zero - confirmed over two consecutive readings so a brief API glitch can't fake one, and only when no matching entry exists in Ocean's own ledger. A deduced payout shows as "type not known yet" for its first 24 hours (a late-arriving on-chain record replaces it automatically), then as "probably Lightning". Your history is backfilled on upgrade, deduced records survive the P&L rebuild/hard-reset controls, and if Ocean's API ever starts reporting Lightning payouts, the real records take over seamlessly.
- Deduced payouts on the chart: they render as a ghost gem (dashed outline) whose tooltip explains how the payout was deduced and marks the amount as approximate. The P&L on-chain vs Lightning split includes them.
Fixed
- Timeline notes survive the P&L hard reset (#346). Rebuilding your finances gave every payout a new internal id, silently orphaning the personal notes attached to them. Notes are now snapshotted before the wipe and re-attached to the rebuilt payouts, and a deduced payout replaced by its real ledger record passes its note along.
Full details in CHANGELOG.md.