projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set update_add blinding point on HTLC forward
[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 605080c7b9298798e45b1a9216f5bad62c810fd3..88f0efe9aa8f393060372dc2b05c843f3be5e1b0 100644
(file)
--- a/
lightning/src/ln/onion_utils.rs
+++ b/
lightning/src/ln/onion_utils.rs
@@
-242,6
+242,8
@@
pub(super) fn build_onion_payloads(path: &Path, total_msat: u64, mut recipient_o
/// the hops can be of variable length.
pub(crate) const ONION_DATA_LEN: usize = 20*65;
/// the hops can be of variable length.
pub(crate) const ONION_DATA_LEN: usize = 20*65;
+pub(super) const INVALID_ONION_BLINDING: u16 = 0x8000 | 0x4000 | 24;
+
#[inline]
fn shift_slice_right(arr: &mut [u8], amt: usize) {
for i in (amt..arr.len()).rev() {
#[inline]
fn shift_slice_right(arr: &mut [u8], amt: usize) {
for i in (amt..arr.len()).rev() {