Use RouteHop's new node_features to send TLV-encoded onion hops
authorMatt Corallo <git@bluematt.me>
Sat, 28 Dec 2019 18:44:47 +0000 (13:44 -0500)
committerMatt Corallo <git@bluematt.me>
Sat, 25 Jan 2020 22:12:08 +0000 (17:12 -0500)
commitb341d686b9007df10af4b641b3e019b3489b7a43
treeccf7d0d847bcb1545b8c35ff1a43972c594df89d
parente7ce124fcbd3b9750c76c2fd27c1fb26ba6a2ef0
Use RouteHop's new node_features to send TLV-encoded onion hops

This implements the new TLV variable-length encoding for onion hop
data, opting to send it if the RouteHop's node_features indicates
support. It also uses the new process_inline method in ChaCha20 to
optimize a few things (though it grows a new TODO for a
probably-important optimization).
lightning/src/ln/channelmanager.rs
lightning/src/ln/features.rs
lightning/src/ln/onion_utils.rs