rust-lightning/lightning
Matt Corallo 1818c4a115 Include inbound-claimed-HTLCs in reported channel balances
Given the balance is reported as "total balance if we went to chain
ignoring fees", it seems reasonable to include claimed HTLCs - if
we went to chain we'd get those funds, less on-chain fees. Further,
if we do not include them, its possible to have pending outbound
holding-cell HTLCs underflow the balance calculation, causing a
panic in debug mode, and bogus values in release.

This resolves a subtraction underflow bug found by the
`chanmon_consistency` fuzz target.
2022-02-10 22:25:41 +00:00
..
src Include inbound-claimed-HTLCs in reported channel balances 2022-02-10 22:25:41 +00:00
Cargo.toml Update hex requirement from 0.3 to 0.4 2022-01-18 22:05:49 +00:00