mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
tools/generate-wire: don't use void * pointers for tlv fromwire.
And fix up the one place which got it wrong. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
c5a2e64fd4
commit
dc83e64003
@@ -147,11 +147,12 @@ int main(int argc, char **argv)
|
||||
u8 *p;
|
||||
u8 buf[BIGSIZE_MAX_LEN];
|
||||
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, *outer;
|
||||
struct tlv_onionmsg_payload *outer;
|
||||
struct tlv_encmsg_tlvs *inner;
|
||||
int ret;
|
||||
|
||||
/* Inner is encrypted */
|
||||
inner = tlv_onionmsg_payload_new(tmpctx);
|
||||
inner = tlv_encmsg_tlvs_new(tmpctx);
|
||||
/* Use scid if they provided one */
|
||||
if (scids[i]) {
|
||||
inner->next_short_channel_id
|
||||
|
||||
Reference in New Issue
Block a user