offers: don't call create_invoicereq twice.

We ignored the second one, but still it's unnecessary.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2025-02-14 20:59:42 +10:30
parent 4ed709f9ec
commit 731aa497c3

View File

@@ -353,7 +353,7 @@ static struct command_result *add_blindedpaths(struct command *cmd,
struct invreq *ir)
{
if (!we_want_blinded_path(cmd->plugin))
create_invoicereq(cmd, ir);
return create_invoicereq(cmd, ir);
return find_best_peer(cmd, OPT_ROUTE_BLINDING,
found_best_peer, ir);