diff --git a/common/route.c b/common/route.c index 04d590643882..3ad9b4e964ee 100644 --- a/common/route.c +++ b/common/route.c @@ -25,7 +25,7 @@ bool route_can_carry(const struct gossmap *map, struct amount_msat amount, void *arg) { - if (!c->half[dir].enabled || !c->half[!dir].enabled) + if (!c->half[dir].enabled) return false; return route_can_carry_even_disabled(map, c, dir, amount, arg); } diff --git a/plugins/topology.c b/plugins/topology.c index 0d8851319656..e0807da3db91 100644 --- a/plugins/topology.c +++ b/plugins/topology.c @@ -557,9 +557,9 @@ static struct amount_msat peer_capacity(const struct gossmap *gossmap, continue; if (!c->half[!dir].enabled) continue; - if (!amount_msat_add(&capacity, capacity, - amount_msat(fp16_to_u64(c->half[dir] - .htlc_max)))) + if (!amount_msat_add( + &capacity, capacity, + amount_msat(fp16_to_u64(c->half[!dir].htlc_max)))) continue; } return capacity;