]> git.bitcoin.ninja Git - rust-lightning/commit
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>
Wed, 29 Jan 2020 18:57:25 +0000 (13:57 -0500)
commita166eca0155a507cfcf1387a70be34c0a15184cb
treeff20d616c549ec99ef647797a158b547f25f067b
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