Skip to content

Commit

Permalink
common/blindedpath: fix type of enctlv.
Browse files Browse the repository at this point in the history
This didn't compile, but since nothing depends yet on common/blindedpath.o
we don't build it yet.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Dec 9, 2020
1 parent d971fb8 commit 374697d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/blindedpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ struct onionmsg_path **make_blindedpath(const tal_t *ctx,

for (size_t i = 0; i < num - 1; i++) {
const unsigned char npub[crypto_aead_chacha20poly1305_ietf_NPUBBYTES] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
struct tlv_onionmsg_payload *inner;
struct tlv_encmsg_tlvs *inner;
int ret;

/* Inner is encrypted */
inner = tlv_onionmsg_payload_new(tmpctx);
inner = tlv_encmsg_tlvs_new(tmpctx);
/* FIXME: We could support scids, too */
inner->next_node_id = cast_const(struct pubkey *, &route[i+1]);

Expand Down

0 comments on commit 374697d

Please sign in to comment.