projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Persist whether an HTLC is blinded in HTLCPreviousHopData.
[rust-lightning]
/
lightning
/
src
/
ln
/
onion_payment.rs
diff --git
a/lightning/src/ln/onion_payment.rs
b/lightning/src/ln/onion_payment.rs
index d191c470373256d4424e6a47ffd1b5f740a2a08c..c10cdc9ab10ea61e3dbd2d3063835553d57acf2b 100644
(file)
--- a/
lightning/src/ln/onion_payment.rs
+++ b/
lightning/src/ln/onion_payment.rs
@@
-56,6
+56,7
@@
pub(super) fn create_fwd_pending_htlc_info(
routing: PendingHTLCRouting::Forward {
onion_packet: outgoing_packet,
short_channel_id,
routing: PendingHTLCRouting::Forward {
onion_packet: outgoing_packet,
short_channel_id,
+ blinded: None,
},
payment_hash: msg.payment_hash,
incoming_shared_secret: shared_secret,
},
payment_hash: msg.payment_hash,
incoming_shared_secret: shared_secret,
@@
-414,7
+415,7
@@
mod tests {
.map_err(|e| e.msg).unwrap();
let next_onion = match peeled.routing {
.map_err(|e| e.msg).unwrap();
let next_onion = match peeled.routing {
- PendingHTLCRouting::Forward { onion_packet,
short_channel_id: _
} => {
+ PendingHTLCRouting::Forward { onion_packet,
..
} => {
onion_packet
},
_ => panic!("expected a forwarded onion"),
onion_packet
},
_ => panic!("expected a forwarded onion"),
@@
-449,6
+450,7
@@
mod tests {
payment_hash,
onion_routing_packet,
skimmed_fee_msat: None,
payment_hash,
onion_routing_packet,
skimmed_fee_msat: None,
+ blinding_point: None,
}
}
}
}