Skip to content

Commit b6ca95a

Browse files
committed
offers: don't call create_invoicereq twice.
We ignored the second one, but still it's unnecessary. Signed-off-by: Rusty Russell <[email protected]>
1 parent 0e9598f commit b6ca95a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/offers_invreq_hook.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ static struct command_result *add_blindedpaths(struct command *cmd,
357357
/* Don't bother if we're public */
358358
node_id_from_pubkey(&local_nodeid, &id);
359359
if (gossmap_find_node(get_gossmap(cmd->plugin), &local_nodeid))
360-
create_invoicereq(cmd, ir);
360+
return create_invoicereq(cmd, ir);
361361

362362
return find_best_peer(cmd, OPT_ROUTE_BLINDING,
363363
found_best_peer, ir);

0 commit comments

Comments
 (0)