]> git.bitcoin.ninja Git - rust-lightning/commit
Consider `MONITOR_UPDATE_IN_PROGRESS` as unbroadcasted funding
authorMatt Corallo <git@bluematt.me>
Fri, 29 Dec 2023 00:45:07 +0000 (00:45 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 29 Dec 2023 06:27:31 +0000 (06:27 +0000)
commit396c36b6ea2335acabd297eb7ed1acaac69a80ea
tree3b9fe265afc16110791fa37055ed7e531fcffbea
parent4deb2631dccfe787c8bc1f34b44bcd6f77ad80cd
Consider `MONITOR_UPDATE_IN_PROGRESS` as unbroadcasted funding

If we promote our channel to `AwaitingChannelReady` after adding
funding info, but still have `MONITOR_UPDATE_IN_PROGRESS` set, we
haven't broadcasted the funding transaction yet and thus should
return values from `unbroadcasted_funding[_txid]` and generate a
`DiscardFunding` event.
lightning/src/ln/channel.rs