]> git.bitcoin.ninja Git - rust-lightning/commit
Explicitly track the set of spendable transactions which confirm
authorMatt Corallo <git@bluematt.me>
Fri, 18 Nov 2022 22:51:17 +0000 (22:51 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 18 Nov 2022 22:57:35 +0000 (22:57 +0000)
commit537e91cb1ec4ef65728e3fdda5eb5e2e19fd91c8
tree0bc27f85d1cc859498ea19930443f5ba6972e872
parent4883eba3ae96aacb4c6871805a86bee7a519aac2
Explicitly track the set of spendable transactions which confirm

In `ChannelMonitor`s, when a transaction containing a spend of a
revoked remote output reaches 6 confs, we may have no other
tracking of that txid remaining. Thus, if we see that transaction
again (because a user duplicatively confirms it), we'll generate a
redundant spendable output event for it.

Here we simply explicitly track all txids of transactions which
confirm with a spendable output, allowing us to check this
condition in the next commit.
lightning/src/chain/channelmonitor.rs