You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log_trace!(logger,"Building path from {} (payee) to {} (us/payer) for value {} msat.", payment_params.payee_pubkey, our_node_pubkey, final_value_msat);
815
838
816
839
macro_rules! add_entry {
@@ -4907,6 +4930,32 @@ mod tests {
4907
4930
assert_eq!(route.paths[1][0].short_channel_id,2);
4908
4931
assert_eq!(route.paths[1][0].fee_msat,50_000);
4909
4932
}
4933
+
4934
+
{
4935
+
// If we have a bunch of outbound channels to the same node, where most are not
4936
+
// sufficient to pay the full payment, but one is, we should default to just using the
4937
+
// one single channel that has sufficient balance, avoiding MPP.
4938
+
//
4939
+
// If we have several options above the 3xpayment value threshold, we should pick the
4940
+
// smallest of them, avoiding further fragmenting our available outbound balance to
4941
+
// this node.
4942
+
let route = get_route(&our_id,&payment_params,&network_graph.read_only(),Some(&[
0 commit comments