Skip to content

Commit 44f36b9

Browse files
committed
f rebase
1 parent 410dce0 commit 44f36b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lightning/src/ln/inbound_payment.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,13 @@ fn construct_payment_secret(
315315
let (iv_slice, encrypted_info_slice) = payment_secret_bytes.split_at_mut(IV_LEN);
316316
iv_slice.copy_from_slice(iv_bytes);
317317

318-
encrypted_metadata_slice.copy_from_slice(info_bytes);
318+
encrypted_info_slice.copy_from_slice(info_bytes);
319319
ChaCha20::new_from_block(
320320
Key::new(*info_key),
321321
Nonce::new(iv_bytes[4..].try_into().unwrap()),
322322
u32::from_le_bytes(iv_bytes[..4].try_into().unwrap()),
323323
)
324-
.apply_keystream(encrypted_metadata_slice);
324+
.apply_keystream(encrypted_info_slice);
325325

326326
PaymentSecret(payment_secret_bytes)
327327
}

0 commit comments

Comments
 (0)