Replace `get_revoke_commit_msgs` macro with a function
authorMatt Corallo <git@bluematt.me>
Fri, 10 Feb 2023 19:39:09 +0000 (19:39 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 1 Mar 2023 18:29:12 +0000 (18:29 +0000)
commit90b2f5e1aaa2a564d6ca4f5dd9991bcab1a30a05
tree8651ec35eca0209a6f68c1f8354282bd97835bb4
parentb5912eccf0f498a31383be9496ccaa12b12855f7
Replace `get_revoke_commit_msgs` macro with a function

The `get_revoke_commit_msgs!()` 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 324,763 LoC to 322,183 LoC.
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs