]> git.bitcoin.ninja Git - rust-lightning/commit
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>
Tue, 11 Feb 2020 21:27:38 +0000 (16:27 -0500)
commitbfe59a753e9c9940a7aa40e0e7ccd3329333073a
treed236adbad2853ce88a40e8c791b9e99ae97880d8
parentc94e53d9ddd65816b29af07ac075f542f0f5b37f
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