Replace `check_added_monitors` with a function
authorMatt Corallo <git@bluematt.me>
Fri, 10 Feb 2023 18:54:03 +0000 (18:54 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 1 Mar 2023 18:27:54 +0000 (18:27 +0000)
commit4bb14adf94f616d153d57ccf66658100dd47f7de
tree7725dad46accde84562611c96419741cb9c8e8c0
parent8311581fe110a9ee561a6fda6b55c78a02068d43
Replace `check_added_monitors` with a function

The `check_added_monitors!()` 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 338,710 LoC to 329,119 LoC.
lightning/src/ln/functional_test_utils.rs