DRY HTLC failure code in check_spend_counterparty_transaction
authorMatt Corallo <git@bluematt.me>
Sat, 31 Jul 2021 03:31:10 +0000 (03:31 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 9 Aug 2021 16:12:24 +0000 (16:12 +0000)
commit925e64228ff0a271b9dc49faa26cef4b27c55e95
tree0b3cf198f7b7f2b33dc187a5a14f6577103a81c8
parent853007800ebb433f53b5b10e1a941cc65c04e829
DRY HTLC failure code in check_spend_counterparty_transaction

This extracts the HTLC-not-in-broadcasted-commitment-transaction
code from check_spend_counterparty_transaction and moves it to a
global macro, DRYing up the two very similar codepaths (fixing
some minor logging inconsistencies) in the process.

This macro will be used for local commitment transaction HTLC
failure as well in the next commit.

This commit has no functional change outside of logging.
lightning/src/chain/channelmonitor.rs