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)
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.


No differences found