common/blindedpath: generalize construction routines.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-10-17 11:13:08 +10:30
parent 53e40c4380
commit c0ae2394d8
6 changed files with 50 additions and 20 deletions

View File

@@ -638,9 +638,10 @@ send_modern_message(struct command *cmd,
&blinding_iter,
&sent->path[i],
&sent->path[i+1],
NULL,
/* FIXME: Pad? */
0,
NULL,
NULL, NULL, NULL, NULL,
&blinding_iter,
&node_alias[i]);
}
@@ -650,7 +651,7 @@ send_modern_message(struct command *cmd,
/* We don't include enctlv in final, but it gives us final alias */
if (!create_final_enctlv(tmpctx, &blinding_iter, &sent->path[nhops-1],
/* FIXME: Pad? */ 0,
NULL,
NULL, NULL,
&node_alias[nhops-1])) {
/* Should not happen! */
return command_fail(cmd, LIGHTNINGD,