projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support (de)serializing payment_data in onion TLVs and track them
[rust-lightning]
/
lightning
/
src
/
ln
/
onion_utils.rs
diff --git
a/lightning/src/ln/onion_utils.rs
b/lightning/src/ln/onion_utils.rs
index c2857ad6680f6ad5bc1ccc6a8a8164f7882f0ac3..92da7833309152e12e0aac26a0d51e6d619092c6 100644
(file)
--- a/
lightning/src/ln/onion_utils.rs
+++ b/
lightning/src/ln/onion_utils.rs
@@
-123,7
+123,9
@@
pub(super) fn build_onion_payloads(route: &Route, starting_htlc_offset: u32) ->
res.insert(0, msgs::OnionHopData {
format: if hop.node_features.supports_variable_length_onion() {
if idx == 0 {
res.insert(0, msgs::OnionHopData {
format: if hop.node_features.supports_variable_length_onion() {
if idx == 0 {
- msgs::OnionHopDataFormat::FinalNode
+ msgs::OnionHopDataFormat::FinalNode {
+ payment_data: None,
+ }
} else {
msgs::OnionHopDataFormat::NonFinalNode {
short_channel_id: last_short_channel_id,
} else {
msgs::OnionHopDataFormat::NonFinalNode {
short_channel_id: last_short_channel_id,