lnsocket

A minimal C library for connecting to the lightning network
git clone git://jb55.com/lnsocket
Log | Files | Refs | Submodules | README | LICENSE

commit 1f8e52af11d17c70b9f6c2cf03b06afb204125a1
parent 88137cc0a42c4ac103ac8c5a13fff787eed8b8fe
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 15 Mar 2022 11:53:33 -0700

don't send network tlvs in default init

this is optional anyways, and precludes the use of regtest

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mlnsocket.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lnsocket.c b/lnsocket.c @@ -110,6 +110,7 @@ int EXPORT lnsocket_make_default_initmsg(unsigned char *msgbuf, int buflen) u8 features[5] = {0}; u16 len; + /* const u8 genesis_block[] = { 0x6f, 0xe2, 0x8c, 0x0a, 0xb6, 0xf1, 0xb3, 0x72, 0xc1, 0xa6, 0xa2, 0x46, 0xae, 0x63, 0xf7, 0x4f, 0x93, 0x1e, 0x83, 0x65, 0xe1, 0x5a, 0x08, 0x9c, @@ -122,12 +123,16 @@ int EXPORT lnsocket_make_default_initmsg(unsigned char *msgbuf, int buflen) &network_tlv)) return 0; + const struct tlv *init_tlvs[] = { &network_tlv } ; + */ + + const struct tlv *init_tlvs[] = { } ; if (!lnsocket_make_init_msg(msgbuf, buflen, global_features, sizeof(global_features), features, sizeof(features), - init_tlvs, 1, + init_tlvs, 0, &len)) return 0;