]> git.bitcoin.ninja Git - rust-lightning/commit
Track counterparty payout info in counterparty commitment txn
authorMatt Corallo <git@bluematt.me>
Sat, 30 Apr 2022 20:29:31 +0000 (20:29 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 15 Aug 2022 23:18:11 +0000 (23:18 +0000)
commit0ec54ecd977732a83947668e3e6432c7b9dc0295
tree4afbc0680502875c84868a76f89c4780d9ab1c95
parent9115f66dbc3824b2d655eb5440d122bdd1282eff
Track counterparty payout info in counterparty commitment txn

When handling a revoked counterparty commitment transaction which
was broadcast on-chain, we occasionally need to look up which
output (and its value) was to the counterparty (the `to_self`
output). This will allow us to generate `Balance`s for the user for
the revoked output.
lightning/src/chain/channelmonitor.rs