]> git.bitcoin.ninja Git - rust-lightning/commit
Enforce segwit inputs for all "safe" funding transactions 2024-07-funding-check
authorMatt Corallo <git@bluematt.me>
Mon, 22 Jul 2024 20:03:41 +0000 (20:03 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 22 Jul 2024 20:03:41 +0000 (20:03 +0000)
commit55686b9c6645d647af448995237b40d69421d595
treee62f4c163af3f662db86ff3c883dbfd572ec08b5
parent37331035f93d0f5e4346fc0f5211999d719edd24
Enforce segwit inputs for all "safe" funding transactions

8403755a2a524beb9f6c8951f51dd60f7c54c912 introduced a separate path
for funding a channel without a full funding transaction, relying
on users to manually broadcast the funding tx. One of the major
things that makes this path less safe is that for other paths we're
supposed to validate that all inputs have witnesses, making the
funding transaction (likely) txid-non-malleable.

However, in one of several rewrites of that commit the funding tx
tests ended up getting elided in some call paths, which is fixed
here.
lightning/src/ln/channelmanager.rs