Description
This may be hard to investigate remotely and parse all the data. But I've got about 10GB worth of log files from my continuous prober this month and I'm trying to hone in on path finding failures and why certain routes are being picked up or not.
I'm honing in on Wallet of Satoshi (035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226
) as a reference and going through the Voltage Flow 2.0 (03aefa43fbb4009b21a4129d05953974b7dbabbbfb511921410080860fca8ee1f0
) node.
They have a direct channel with each other. When I run a script that looks through the logs to find when it tries to probe a direct path from voltage -> wos whenever I target wos, the last entry I have goes back about 15 days:
2023-08-10 16:02:51.577 TRACE [lightning::routing::router:2248] Found a path back to us from the target with 2 hops contributing up to 109904500 msat:
[
PathBuildingHop {
node_id: NodeId(03aefa43fbb4009b21a4129d05953974b7dbabbbfb511921410080860fca8ee1f0),
short_channel_id: Some(
880204138120806401,
),
total_fee_msat: 3500,
next_hops_fee_msat: 3500,
hop_use_fee_msat: 0,
total_fee_msat - (next_hops_fee_msat + hop_use_fee_msat): 0,
path_penalty_msat: 31181,
path_htlc_minimum_msat: 1000,
cltv_expiry_delta: 0,
},
PathBuildingHop {
node_id: NodeId(035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226),
short_channel_id: Some(
879148606984028160,
),
total_fee_msat: 3500,
next_hops_fee_msat: 0,
hop_use_fee_msat: 0,
total_fee_msat - (next_hops_fee_msat + hop_use_fee_msat): 3500,
path_penalty_msat: 24989,
path_htlc_minimum_msat: 1000,
cltv_expiry_delta: 34,
},
]
2023-08-10 16:02:51.577 TRACE [lightning::routing::router:2295] Disabling route candidate SCID 879148606984028160 for future path building iterations to
avoid duplicates.
and that resulted in:
2023-08-10 16:02:53.676 INFO [lightning::ln::onion_utils:579] Onion Error[from 03aefa43fbb4009b21a4129d05953974b7dbabbbfb511921410080860fca8ee1f0: temporary_channel_failure(0x1007)] Node indicated the outgoing channel is unable to handle the HTLC temporarily
After that, I never see it try to go that route when directly probing wos. However, it currently has 598148
sats of outbound from voltage -> wos. And there's plenty of times WoS is included in paths for probing others:
2023-08-21 21:32:27.571 TRACE [lightning::ln::peer_handler:1579] Received message Pong(Pong { byteslen: 0 }) from 03aefa43fbb4009b21a4129d05953974b7dbabbbfb511921410080860fca8ee1f0
2023-08-21 21:32:27.591 TRACE [lightning::routing::router:2248]
Found a path back to us from the target with 7 hops contributing up to 24742875 msat:
[
PathBuildingHop {
node_id: NodeId(03aefa43fbb4009b21a4129d05953974b7dbabbbfb511921410080860fca8ee1f0),
short_channel_id: Some(
880350373213634560,
),
total_fee_msat: 10847,
next_hops_fee_msat: 10847,
hop_use_fee_msat: 0,
total_fee_msat - (next_hops_fee_msat + hop_use_fee_msat): 0,
path_penalty_msat: 42211,
path_htlc_minimum_msat: 4000,
cltv_expiry_delta: 0,
},
PathBuildingHop {
node_id: NodeId(035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226),
short_channel_id: Some(
879148606984028160,
),
total_fee_msat: 10847,
next_hops_fee_msat: 9600,
hop_use_fee_msat: 1247,
total_fee_msat - (next_hops_fee_msat + hop_use_fee_msat): 0,
path_penalty_msat: 39267,
path_htlc_minimum_msat: 4000,
cltv_expiry_delta: 34,
},
PathBuildingHop {
node_id: NodeId(037bba3fec931587fa28061ca522c962491ab1e98c30836e9dd5d011895823d8ad),
short_channel_id: Some(
807730928654024705,
),
total_fee_msat: 9600,
next_hops_fee_msat: 7125,
hop_use_fee_msat: 2475,
total_fee_msat - (next_hops_fee_msat + hop_use_fee_msat): 0,
path_penalty_msat: 32879,
path_htlc_minimum_msat: 3000,
cltv_expiry_delta: 40,
},
PathBuildingHop {
2023-08-21 21:38:00.994 TRACE [lightning::routing::router:2175] Starting main path collection loop with 25 nodes pre-filled from first/last hops. [656/27780]
2023-08-21 21:38:01.056 TRACE [lightning::routing::router:2248]
Found a path back to us from the target with 8 hops contributing up to 49498750 msat:
[
PathBuildingHop {
node_id: NodeId(03aefa43fbb4009b21a4129d05953974b7dbabbbfb511921410080860fca8ee1f0),
short_channel_id: Some(
880350373213634560,
),
total_fee_msat: 9685,
next_hops_fee_msat: 9685,
hop_use_fee_msat: 0,
total_fee_msat - (next_hops_fee_msat + hop_use_fee_msat): 0,
path_penalty_msat: 62717,
path_htlc_minimum_msat: 3000,
cltv_expiry_delta: 0,
},
PathBuildingHop {
node_id: NodeId(035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226),
short_channel_id: Some(
879148606984028160,
),
total_fee_msat: 9685,
next_hops_fee_msat: 8190,
hop_use_fee_msat: 1495,
total_fee_msat - (next_hops_fee_msat + hop_use_fee_msat): 0,
path_penalty_msat: 58829,
path_htlc_minimum_msat: 3000,
cltv_expiry_delta: 34,
},
PathBuildingHop {
node_id: NodeId(02d8a1d22732b1e2097ddb074bc15b3d14234ea5a0655df2997a67255df5c74765),
short_channel_id: Some(
800811702060318721,
),
total_fee_msat: 8190,
next_hops_fee_msat: 3240,
hop_use_fee_msat: 4950,
total_fee_msat - (next_hops_fee_msat + hop_use_fee_msat): 0,
path_penalty_msat: 46048,
path_htlc_minimum_msat: 2000,
cltv_expiry_delta: 40,
},
and occasional successful probes and routing failure errors I get from wos:
2023-08-20 19:47:24.293 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-20 19:47:30.016 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-20 19:50:27.710 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-20 19:53:12.998 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-20 20:23:59.648 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: unknown_next_peer(0x400a)] Node indicated the outbound channel is not found for the specified short_channel_id in the onion packet
2023-08-20 20:29:38.504 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: temporary_channel_failure(0x1007)] Node indicated the outgoing channel is unable to handle the HTLC temporarily
2023-08-20 20:30:08.006 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: temporary_channel_failure(0x1007)] Node indicated the outgoing channel is unable to handle the HTLC temporarily
2023-08-20 20:45:01.084 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: temporary_channel_failure(0x1007)] Node indicated the outgoing channel is unable to handle the HTLC temporarily
2023-08-20 20:45:28.994 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: temporary_channel_failure(0x1007)] Node indicated the outgoing channel is unable to handle the HTLC temporarily
2023-08-20 20:45:31.870 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: temporary_channel_failure(0x1007)] Node indicated the outgoing channel is unable to handle the HTLC temporarily
2023-08-21 02:56:56.489 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-21 02:57:31.463 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-21 02:58:24.927 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-21 02:59:01.451 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-21 02:59:30.147 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-21 03:03:54.687 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: temporary_channel_failure(0x1007)] Node indicated the outgoing channel is unable to handle the HTLC temporarily
2023-08-21 06:54:32.743 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-21 17:36:45.154 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-21 17:38:04.295 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-21 17:41:48.273 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-21 17:45:53.221 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-21 17:48:01.423 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-22 03:46:00.901 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-22 03:46:36.029 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-22 03:48:23.268 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-22 03:48:44.260 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-22 03:49:19.871 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-22 11:34:29.031 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: temporary_channel_failure(0x1007)] Node indicated the outgoing channel is unable to handle the HTLC temporarily
2023-08-22 11:44:47.370 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-22 17:55:56.885 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: unknown_next_peer(0x400a)] Node indicated the outbound channel is not found for the specified short_channel_id in the onion packet
2023-08-22 20:43:45.708 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-25 10:01:01.262 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-25 13:17:31.636 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-25 13:17:40.593 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-25 13:18:02.927 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-25 13:18:27.787 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-25 13:18:38.822 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-25 14:20:24.492 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-25 14:21:00.181 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-25 14:22:19.980 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-25 14:22:58.070 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-25 14:23:21.749 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-25 15:40:01.737 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-25 15:40:05.591 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-25 17:10:55.464 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
2023-08-25 17:11:07.923 INFO [lightning::ln::onion_utils:579] Onion Error[from 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226: incorrect_or_unknown_payment_details(0x400f)] The final node indicated the payment hash is unknown or amount is incorrect
Now on the mutiny wallet side: whenver I pull in the remote scorer and make a 10k payment (note, that we do not attempt to probe this low, the minimum is about ~30k sats), then I see my router build that path:
2023-08-25 19:05:38.740 TRACE [lightning::routing::router:1648] Building path from payee node id 035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226 to payer 03818a6060cb899d52258a7c12c57e754b625391e2fea1f81d3c2b221e0ecb7222 for value 10000000 msat.
2023-08-25 19:05:38.746 TRACE [lightning::routing::router:2175] Starting main path collection loop with 1982 nodes pre-filled from first/last hops.
2023-08-25 19:05:38.836 TRACE [lightning::routing::router:2248] Found a path back to us from the target with 2 hops contributing up to 10000000 msat:
[
PathBuildingHop {
node_id: NodeId(03aefa43fbb4009b21a4129d05953974b7dbabbbfb511921410080860fca8ee1f0),
short_channel_id: Some(
882907837178052609,
),
total_fee_msat: 1100,
next_hops_fee_msat: 1100,
hop_use_fee_msat: 0,
total_fee_msat - (next_hops_fee_msat + hop_use_fee_msat): 0,
path_penalty_msat: 7921,
path_htlc_minimum_msat: 1000,
cltv_expiry_delta: 0,
},
PathBuildingHop {
node_id: NodeId(035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226),
short_channel_id: Some(
879148606984028160,
),
total_fee_msat: 1100,
next_hops_fee_msat: 0,
hop_use_fee_msat: 0,
total_fee_msat - (next_hops_fee_msat + hop_use_fee_msat): 1100,
path_penalty_msat: 5540,
path_htlc_minimum_msat: 1000,
cltv_expiry_delta: 34,
},
]
However, when I immediately try 100k to wos from mutiny, it doesn't attempt to pick up that path, the first one is:
035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226 to payer 03818a6060cb899d52258a7c12c57e754b625391e2fea1f81d3c2b221e0ecb7222 for value 100000000 msat.
2023-08-25 19:09:13.191 TRACE [lightning::routing::router:2175] Starting main path collection loop with 1957 nodes pre-filled from first/last hops.
2023-08-25 19:09:13.353 TRACE [lightning::routing::router:2248] Found a path back to us from the target with 3 hops contributing up to 100000000 msat:
[
PathBuildingHop {
node_id: NodeId(03aefa43fbb4009b21a4129d05953974b7dbabbbfb511921410080860fca8ee1f0),
short_channel_id: Some(
882907837178052609,
),
total_fee_msat: 3100,
next_hops_fee_msat: 3100,
hop_use_fee_msat: 0,
total_fee_msat - (next_hops_fee_msat + hop_use_fee_msat): 0,
path_penalty_msat: 17442,
path_htlc_minimum_msat: 2000,
cltv_expiry_delta: 0,
},
PathBuildingHop {
node_id: NodeId(030a58b8653d32b99200a2334cfe913e51dc7d155aa0116c176657a4f1722677a3),
short_channel_id: Some(
872723061011382273,
),
total_fee_msat: 3100,
next_hops_fee_msat: 1100,
hop_use_fee_msat: 2000,
total_fee_msat - (next_hops_fee_msat + hop_use_fee_msat): 0,
path_penalty_msat: 11628,
path_htlc_minimum_msat: 2000,
cltv_expiry_delta: 34,
},
PathBuildingHop {
node_id: NodeId(035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226),
short_channel_id: Some(
883547752890302465,
),
total_fee_msat: 1100,
next_hops_fee_msat: 0,
hop_use_fee_msat: 0,
total_fee_msat - (next_hops_fee_msat + hop_use_fee_msat): 1100,
path_penalty_msat: 5814,
path_htlc_minimum_msat: 1000,
cltv_expiry_delta: 80,
},
]
And the rest of the routes are even longer and none of them succeed. I immediately asked voltage what their outbound to WoS was and it was 600k.
So to summarize, my observations is that the router is not trying to pick up direct 2 hop paths very often anymore with WoS, or at least none after the temporarily_channel_failure
message the last time it tried to make a 2 hop path to the target.
Mutiny will pull down the remote scorer and still try the 2 hop path for ~10k sats, but for 100k sats it never attempts to construct the 2 hop path. If it would have, it would have succeeded on the first try. So something leaves me to believe that the channel is not being picked up anymore for higher amounts and I'm not sure why.
Could something look less ideal about that route or is it the fact that the scorer saved the temporary_channel_failure
with that SCID and it's being excluded? Note that our prober only excludes SCID's when calling find_route
in a while loop for each unique instance of probe amount & probe target. IE, when it has a new amount target / node target, it resets the SCID's to exclude when we call find_route
.
Our prober's find_routes
method if it helps (note that mutiny does not use this, it just tries to pay invoice with the prober's scorer):
fn find_routes(
destination_node: PublicKey, amount: u64, channel_manager: &ChannelManager,
network: &NetworkGraph, logger: &FilesystemLogger,
scorer: Arc<Mutex<ProbabilisticScorer<Arc<NetworkGraph>, Arc<FilesystemLogger>>>>,
previously_failed_channels: Vec<u64>,
) -> Result<Route, LightningError> {
let our_node_pubkey = channel_manager.get_our_node_id();
let our_channels = channel_manager.list_usable_channels().to_owned();
let payment_params = PaymentParameters {
payee: Payee::Clear {
node_id: destination_node,
route_hints: vec![],
features: None,
final_cltv_expiry_delta: 40,
},
expiry_time: None,
max_total_cltv_expiry_delta: DEFAULT_MAX_TOTAL_CLTV_EXPIRY_DELTA,
max_path_count: DEFAULT_MAX_PATH_COUNT,
max_channel_saturation_power_of_half: 2,
previously_failed_channels,
};
let route_params = RouteParameters { payment_params, final_value_msat: amount * 1_000 };
let random_bytes = rand::thread_rng().gen::<[u8; 32]>();
find_route(
&our_node_pubkey,
&route_params,
network,
Some(our_channels.iter().collect::<Vec<_>>().as_slice()),
logger,
&scorer.lock().unwrap(),
&scoring_params(),
&random_bytes,
)
}
Happy to provide my scorer logs if you want all 10GB of it and my scripts that I used to parse it. Also my scorer is available if there's anything useful there for parsing it somehow. This was working great, but something over the last week or two has caused payment reliability to go down a lot and it could be related to these oddities. I'm tempted to blow away the prober's scorer (or reset it after every day) and let it refill the scorer again from a fresh one.