Test Router serialization round-trip in functional_tests. 2020-02-router-ser-fix
authorMatt Corallo <git@bluematt.me>
Mon, 24 Feb 2020 04:26:10 +0000 (23:26 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 4 Mar 2020 19:29:06 +0000 (14:29 -0500)
commit5f3986d047d0fecca6d0c50c23051d484b935660
treea0ed711150a1693f1129c8bd5af3c9bf11608010
parentb80d3d9d292007e9646aed1a150345a5b7896d26
Test Router serialization round-trip in functional_tests.

This tests Router serialization round-trip at the end of each
functional test in the same way we do ChannelMonitors and
ChannelManagers to catch any cases where we were able to get into
a state which would have prevented reading a Router back off disk.

We further walk all of the announcements which both the original
and deserialized Routers would send to peers requesting initial
sync to ensure they match.
lightning/src/ln/functional_test_utils.rs