Add `total_value_received` to `ClaimableHTLC` for claim validation
authorAlec Chen <alecchendev@gmail.com>
Thu, 23 Mar 2023 19:34:57 +0000 (14:34 -0500)
committerAlec Chen <alecchendev@gmail.com>
Tue, 28 Mar 2023 22:21:09 +0000 (17:21 -0500)
commitb9f4ebdd28ccfedc1dd27dab69c9887eee38320d
treef25df168cf152a0a1ae1efe05fa5df309df90677
parent31e78ff258195837abafa045c12c036528696d7f
Add `total_value_received` to `ClaimableHTLC` for claim validation

This is pre-work for allowing nodes to overshoot onion values and
changing validation for MPP completion. This adds a field to
`ClaimableHTLC` that is separate from the onion values, which
represents the actual received amount reported in `PaymentClaimable`
which is what we want to validate against when a user goes to claim.
lightning/src/ln/channelmanager.rs