]> git.bitcoin.ninja Git - rust-lightning/commit
Store the full event transaction in `OnchainEvent` structs
authorMatt Corallo <git@bluematt.me>
Fri, 13 May 2022 05:11:14 +0000 (05:11 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 15 Aug 2022 23:17:22 +0000 (23:17 +0000)
commit9115f66dbc3824b2d655eb5440d122bdd1282eff
tree112fbae7a38b3452c94f602409b18d75a5d395eb
parent4005724ae6719594e42d11718ce9b83fa0641f3b
Store the full event transaction in `OnchainEvent` structs

When we see a transaction which generates some `OnchainEvent`, its
useful to have the full transaction around for later analysis.
Specifically, it lets us check the list of outputs which were spent
in the transaction, allowing us to look up, e.g. which HTLC
outpoint was spent in a transaction.

This will be used in a few commits to do exactly that - figure out
which HTLC a given `OnchainEvent` corresponds with.
lightning/src/chain/channelmonitor.rs