- if let Err(err) = source.send_payment_with_route(&Route {
- paths: vec![Path { hops: vec![RouteHop {
- pubkey: middle.get_our_node_id(),
- node_features: middle.node_features(),
- short_channel_id: middle_chan_id,
- channel_features: middle.channel_features(),
- fee_msat: first_hop_fee,
- cltv_expiry_delta: 100,
- maybe_announced_channel: true,
- }, RouteHop {
- pubkey: dest.get_our_node_id(),
- node_features: dest.node_features(),
- short_channel_id: dest_chan_id,
- channel_features: dest.channel_features(),
- fee_msat: amt,
- cltv_expiry_delta: 200,
- maybe_announced_channel: true,
- }], blinded_tail: None }],
- route_params: None,
- }, payment_hash, RecipientOnionFields::secret_only(payment_secret), PaymentId(payment_id)) {
+ if let Err(err) = source.send_payment_with_route(
+ &Route {
+ paths: vec![Path {
+ hops: vec![
+ RouteHop {
+ pubkey: middle.get_our_node_id(),
+ node_features: middle.node_features(),
+ short_channel_id: middle_chan_id,
+ channel_features: middle.channel_features(),
+ fee_msat: first_hop_fee,
+ cltv_expiry_delta: 100,
+ maybe_announced_channel: true,
+ },
+ RouteHop {
+ pubkey: dest.get_our_node_id(),
+ node_features: dest.node_features(),
+ short_channel_id: dest_chan_id,
+ channel_features: dest.channel_features(),
+ fee_msat: amt,
+ cltv_expiry_delta: 200,
+ maybe_announced_channel: true,
+ },
+ ],
+ blinded_tail: None,
+ }],
+ route_params: None,
+ },
+ payment_hash,
+ RecipientOnionFields::secret_only(payment_secret),
+ PaymentId(payment_id),
+ ) {