]> git.bitcoin.ninja Git - rust-lightning/commit
Replace `check_closed_broadcast` macro with a function
authorMatt Corallo <git@bluematt.me>
Fri, 10 Feb 2023 20:07:54 +0000 (20:07 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 1 Mar 2023 18:30:18 +0000 (18:30 +0000)
commit8bf5eda6bbb030542ac82df05c7483033ca3abc6
treeb91cf7ca15d4c8b4c5ac2cc7a9f3c34b02ba4ac6
parent871aec262171f95ec2dfa869021e33ebddd25111
Replace `check_closed_broadcast` macro with a function

The `check_closed_broadcast!()` macro has no reason to be a macro
so here we move its logic to a function and leave the macro in
place to avoid touching every line of code in the tests.

This reduces the `--profile=test --lib` `Zpretty=expanded` code
size from 313,312 LoC to 309,522 LoC.
lightning/src/ln/functional_test_utils.rs