]> git.bitcoin.ninja Git - rust-lightning/commit
Add a debug_assert the newly-documented (but existing) requirement
authorMatt Corallo <git@bluematt.me>
Wed, 19 Apr 2023 14:51:45 +0000 (14:51 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 19 Apr 2023 14:55:02 +0000 (14:55 +0000)
commitc1e6a74e0b8309bc85e683824f832ac539806dc5
tree49531d34473facb89df22af2388637d23cd25300
parentf57221be60da4ceaa15b7c7b6d63a3d89414ca8f
Add a debug_assert the newly-documented (but existing) requirement

If we add an entry to `claimable_payments` we have to ensure we
actually accept the HTLC we're considering, otherwise we'll end up
with an empty `claimable_payments` entry.
lightning/src/ln/channelmanager.rs