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>
Sat, 25 Jan 2020 22:12:08 +0000 (17:12 -0500)
commitb3dd229711bc095645ebbc6b291005e7f8c43895
tree2513ee5ba281cd8f34547c75b7bff2ce3a8b4d5a
parentbbeadbc3f55e24a6643339e5b82ec017b8ce3892
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