Assert that all onion error messages are correct len in tests
authorMatt Corallo <git@bluematt.me>
Thu, 1 Dec 2022 20:31:52 +0000 (20:31 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 6 Dec 2022 20:00:44 +0000 (20:00 +0000)
commit8ec148072437b3a64ddddee89088a77db271312e
tree9764fb469e26b9f67fd472e27d2d3d5e7d9ea2f4
parentbe7b82b5b8670c27fccba03975a1b4fa34fe5760
Assert that all onion error messages are correct len in tests

When we're constructing an HTLCFailReason, we should check that we
set the data to at least the correct length for the given failure
code, which we do here.
lightning/src/ln/onion_utils.rs