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>
Sat, 25 Jan 2020 22:12:08 +0000 (17:12 -0500)
commit32c245b08fca6330a3a8373184d025332feab157
treef865badc0bd7ad2949eb6bb986b1ba2845bb567d
parent0b40b0cea4bea3fd47f0123131192600c7a2e757
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