Replace `get_htlc_update_msgs` macro with a function
authorMatt Corallo <git@bluematt.me>
Fri, 10 Feb 2023 19:57:00 +0000 (19:57 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 1 Mar 2023 18:29:43 +0000 (18:29 +0000)
commit8c6e1329ff1f1011aa37dd5e28c01a731e1c66dc
tree8af9ed708b4566bfea56f78ab39eeb82b902bf44
parent35bb0f467645b3c756c0b998bb7ea052bac57581
Replace `get_htlc_update_msgs` macro with a function

The `get_htlc_update_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 321,985 LoC to 316,856 LoC.
lightning/src/ln/functional_test_utils.rs