Generate a funding_locked on relevant transactions_confirmed calls 2022-03-tx-conf-ordering-lock-delay
authorMatt Corallo <git@bluematt.me>
Sun, 13 Mar 2022 21:35:46 +0000 (21:35 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 15 Mar 2022 23:59:35 +0000 (23:59 +0000)
commitea769427fe31c622f2ae7e48b7d97c97631355b2
treef638458bd03bec559a5e0910e828657928f31655
parentca163c3fae94e64b7f70a7a549cd761cfa7e52d2
Generate a funding_locked on relevant transactions_confirmed calls

Previously, if we were offline when a funding transaction was
locked in, and then we came back online, calling
`best_block_updated` once followed by `transactions_confirmed`,
we'd not generate a funding_locked until the next
`best_block_updated`.

We address this by re-calling `best_block_updated` in
`transactions_confirmed`, similar to how `ChannelMonitor` works.
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_tests.rs