Drop single-use macro from check_spend_holder_transaction
authorMatt Corallo <git@bluematt.me>
Thu, 15 Jul 2021 16:00:15 +0000 (16:00 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 28 Jul 2021 17:35:09 +0000 (17:35 +0000)
commit49ab8c2f9a9b33a137e97678bd67a186c04a65c9
treeb8f8dbc09b9250ca0ba9a69867865ed1e3b8d031
parent1bb9e64ebc6afaa21afcef4f71bb83054d9b2023
Drop single-use macro from check_spend_holder_transaction

The wait_threshold_conf!() macro in check_spend_holder_transaction
was only used once, making it a good candidate for inlining at the
callsite. Further, it incorrectly always logged that we were
failing HTLCs from the "latest" commitment transaction, when it is
sometimes actually failing HTLCs from the previous commitment
transaction.
lightning/src/chain/channelmonitor.rs