Replace `get_route` macro with a function
authorMatt Corallo <git@bluematt.me>
Fri, 10 Feb 2023 19:29:13 +0000 (19:29 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 1 Mar 2023 18:29:06 +0000 (18:29 +0000)
commitb5912eccf0f498a31383be9496ccaa12b12855f7
tree39ccd5b241b921db7e8f2bbe52da9d4f2d765d0e
parentaefe276fcb0f344e02315279da52b3dd464089e5
Replace `get_route` macro with a function

The `get_route!()` 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 326,588 LoC to 324,763 LoC.
lightning/src/ln/functional_test_utils.rs