ACINQ / eclair

A scala implementation of the Lightning Network.
Apache License 2.0
1.23k stars 267 forks source link

Reject unspendable inputs in `interactive-tx` #2870

Closed t-bast closed 2 months ago

t-bast commented 3 months ago

When we require inputs to be confirmed, we can reliably check whether they are unspent. We can't reliably check this for unconfirmed inputs, because they could be valid but simply not in our mempool, in which case bitcoind would incorrectly consider them unspendable.

We want to reject unspendable inputs early to immediately fail the funding attempt, instead of waiting to detect the double-spend later.