Scan `onchain_events_awaiting_threshold_conf` once in balance calc
authorMatt Corallo <git@bluematt.me>
Tue, 17 May 2022 20:45:17 +0000 (20:45 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 15 Aug 2022 23:18:12 +0000 (23:18 +0000)
commita17794c3800c94fd23e767c1ee3ffd411d7ace81
treec7bc051f4adc4b08c542531b8d6ae9e750b0bfa2
parent04d8f5e3f11c156a862940856002971dcb7ac358
Scan `onchain_events_awaiting_threshold_conf` once in balance calc

Instead of a series of different
`onchain_events_awaiting_threshold_conf.iter()...` calls to scan
for HTLC status in balance calculation, pull them all out into one
`for ... { match ... }` to do it once and simplify the code
somewhat.
lightning/src/chain/channelmonitor.rs