From 03a1df074a6f36c298cb82caa25f2590fec74631 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Tue, 12 Oct 2021 13:13:18 +0200 Subject: [PATCH] peer_wire: add remote_addr to init_tlv Unfortunately we can't do any smart parsing here since wiregen does not support switch/type cases for different substructure unions yet. So just give us a pointer we can use. --- contrib/pyln-spec/bolt1/pyln/spec/bolt1/csv.py | 2 ++ wire/peer_wire.csv | 2 ++ 2 files changed, 4 insertions(+) diff --git a/contrib/pyln-spec/bolt1/pyln/spec/bolt1/csv.py b/contrib/pyln-spec/bolt1/pyln/spec/bolt1/csv.py index 4c8289992..eda2a5862 100644 --- a/contrib/pyln-spec/bolt1/pyln/spec/bolt1/csv.py +++ b/contrib/pyln-spec/bolt1/pyln/spec/bolt1/csv.py @@ -7,6 +7,8 @@ csv = [ "msgdata,init,tlvs,init_tlvs,", "tlvtype,init_tlvs,networks,1", "tlvdata,init_tlvs,networks,chains,chain_hash,...", + "tlvtype,init_tlvs,remote_addr,3", + "tlvdata,init_tlvs,remote_addr,data,byte,...", "msgtype,error,17", "msgdata,error,channel_id,channel_id,", "msgdata,error,len,u16,", diff --git a/wire/peer_wire.csv b/wire/peer_wire.csv index 4043c6350..497d43b52 100644 --- a/wire/peer_wire.csv +++ b/wire/peer_wire.csv @@ -6,6 +6,8 @@ msgdata,init,features,byte,flen msgdata,init,tlvs,init_tlvs, tlvtype,init_tlvs,networks,1 tlvdata,init_tlvs,networks,chains,chain_hash,... +tlvtype,init_tlvs,remote_addr,3 +tlvdata,init_tlvs,remote_addr,data,byte,... msgtype,error,17 msgdata,error,channel_id,channel_id, msgdata,error,len,u16,