Move BogusHopData generation into test instead of OnionHopData.
authorMatt Corallo <git@bluematt.me>
Thu, 26 Dec 2019 18:45:44 +0000 (13:45 -0500)
committerMatt Corallo <git@bluematt.me>
Tue, 11 Feb 2020 18:48:56 +0000 (13:48 -0500)
commit8f3750304b0e8f53fcf0d32915d289e7453a40a1
treeca61ba5bfab8bc46a3f288a42926deecd29a9b0f
parentc2a47d1b4cb512e6a0358078b6625cb74b518196
Move BogusHopData generation into test instead of OnionHopData.

This, as it should be, restricts OnionHopData to only being able to
represent valid states, while still allowing for tests to generate
bogus hop data fields to test deserialization.
lightning/src/ln/functional_tests.rs
lightning/src/ln/msgs.rs
lightning/src/ln/onion_utils.rs