Skip to content

Commit d017657

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

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
@@ -1295,7 +1295,7 @@ where L::Target: Logger {
12951295
// unblinded payee id as an option. We also need a non-optional "payee id" for path construction,
12961296
// so use a dummy id for this in the blinded case.
12971297
let payee_node_id_opt = payment_params.payee.node_id().map(|pk| NodeId::from_pubkey(&pk));
1298-
const DUMMY_BLINDED_PAYEE_ID: [u8; 33] = [42u8; 33];
1298+
const DUMMY_BLINDED_PAYEE_ID: [u8; 33] = [2; 33];
12991299
let maybe_dummy_payee_pk = payment_params.payee.node_id().unwrap_or_else(|| PublicKey::from_slice(&DUMMY_BLINDED_PAYEE_ID).unwrap());
13001300
let maybe_dummy_payee_node_id = NodeId::from_pubkey(&maybe_dummy_payee_pk);
13011301
let our_node_id = NodeId::from_pubkey(&our_node_pubkey);

0 commit comments

Comments
 (0)