Skip to content

Commit a176777

Browse files
Fix panic on pathfinding to blinded recipient
The previous dummy payee id was an invalid pubkey
1 parent 0ecb4b0 commit a176777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ where L::Target: Logger {
12401240
// unblinded payee id as an option. We also need a non-optional "payee id" for path construction,
12411241
// so use a dummy id for this in the blinded case.
12421242
let payee_node_id_opt = payment_params.payee.node_id().map(|pk| NodeId::from_pubkey(&pk));
1243-
const DUMMY_BLINDED_PAYEE_ID: [u8; 33] = [42u8; 33];
1243+
const DUMMY_BLINDED_PAYEE_ID: [u8; 33] = [3, 91, 229, 233, 71, 130, 9, 103, 74, 150, 230, 15, 31, 3, 127, 97, 118, 84, 15, 208, 1, 250, 29, 100, 105, 71, 112, 197, 106, 119, 9, 196, 44]; // pubkey corresponding to secret [42; 33]
12441244
let maybe_dummy_payee_pk = payment_params.payee.node_id().unwrap_or_else(|| PublicKey::from_slice(&DUMMY_BLINDED_PAYEE_ID).unwrap());
12451245
let maybe_dummy_payee_node_id = NodeId::from_pubkey(&maybe_dummy_payee_pk);
12461246
let our_node_id = NodeId::from_pubkey(&our_node_pubkey);

0 commit comments

Comments
 (0)