]> git.bitcoin.ninja Git - rust-lightning/commit
Don't attempt to resume channels if we already exchanged funding
authorMatt Corallo <git@bluematt.me>
Wed, 1 May 2024 14:32:47 +0000 (14:32 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 1 May 2024 21:26:43 +0000 (21:26 +0000)
commit21ab2dc28080dc46113303dfa6ca70902e485fb9
treed8c5019fbd2e788cb95b1cdaeefe3a81df461b95
parentd25d55a682dbd4a3c7fcbaa05744fa002e571bca
Don't attempt to resume channels if we already exchanged funding

ddf75afd16 introduced the ability to re-exchange our `ChannelOpen`
after a peer disconnects if we didn't complete funding on our end.
It did not implement nor consider what would happen if we
re-connected after we created our own funding transactions, and
currently it panics (and even if it did not it would replay the
`FundingTransactionGenerated` event to users).

This addresses this in a temporary fashion to fix the immediate
panic for 0.0.123, allowing us to fix the issue more fully later.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_tests.rs