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>
Mon, 3 Feb 2020 02:38:53 +0000 (21:38 -0500)
commita4e3d200ded7c4205cad6a9a1fcbd11eedd40459
tree81ccb26e20058b2a7b7b40900d66384cc57229be
parentaee06996d97de6012ae7c56a4188587654ecee57
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