diff --git a/plugins/libplugin-pay.c b/plugins/libplugin-pay.c index b4f612cd1109..9a0d101e3760 100644 --- a/plugins/libplugin-pay.c +++ b/plugins/libplugin-pay.c @@ -1756,7 +1756,7 @@ static bool routehint_excluded(struct payment *p, * are suggesting we use it the other way. Very unlikely though! */ for (size_t i = 0; i < tal_count(routehint); i++) { const struct route_info *r = &routehint[i]; - for (size_t j=0; tal_count(nodes); j++) + for (size_t j = 0; j < tal_count(nodes); j++) if (node_id_eq(&r->pubkey, &nodes[j])) return true; diff --git a/plugins/libplugin-pay.h b/plugins/libplugin-pay.h index 209c2edce650..ecbcfeac1312 100644 --- a/plugins/libplugin-pay.h +++ b/plugins/libplugin-pay.h @@ -232,6 +232,9 @@ struct payment { struct channel_hint *channel_hints; struct node_id *excluded_nodes; + /* Optional temporarily excluded channel (i.e. this routehint) */ + struct short_channel_id *temp_exclusion; + struct payment_result *result; /* Did something happen that will cause all future attempts to fail?