Flatten OnionHopData struct with the Realm0 struct.
authorMatt Corallo <git@bluematt.me>
Tue, 24 Dec 2019 20:52:47 +0000 (15:52 -0500)
committerMatt Corallo <git@bluematt.me>
Tue, 11 Feb 2020 18:48:56 +0000 (13:48 -0500)
commit36c725fe1c86fba9a43b70a0fdb2d36767fe29bd
tree8358dbdfb62152327999b0586fa5d792eefdae79
parent87a0018e3ebf7d47086032d817a9e671c359214e
Flatten OnionHopData struct with the Realm0 struct.

Previously OnionHopData contained a OnionRealm0HopData field however
instead of bumping the realm number, it has been replaced with a
length, used to indicte the length of a TLV-formatted object.

Because a TLV-formatted hop data can contain the same information as
a realm-0 hop data, we flatten the field and simply keep track of
what format it was in.
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/msgs.rs
lightning/src/ln/onion_utils.rs