Skip to content

Commit 5a483dd

Browse files
rustyrussellcdecker
authored andcommitted
wire: Apply onion mesages spec patch even when not experimental.
Signed-off-by: Rusty Russell <[email protected]>
1 parent c3200b0 commit 5a483dd

21 files changed

+895
-61
lines changed

channeld/channeld.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,9 +1931,7 @@ static void peer_in(struct peer *peer, const u8 *msg)
19311931
case WIRE_PING:
19321932
case WIRE_PONG:
19331933
case WIRE_ERROR:
1934-
#if EXPERIMENTAL_FEATURES
19351934
case WIRE_ONION_MESSAGE:
1936-
#endif
19371935
abort();
19381936
}
19391937

gossipd/gossipd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,9 @@ static struct io_plan *peer_msg_in(struct io_conn *conn,
757757
case WIRE_CHANNEL_REESTABLISH:
758758
case WIRE_ANNOUNCEMENT_SIGNATURES:
759759
case WIRE_GOSSIP_TIMESTAMP_FILTER:
760+
#if !EXPERIMENTAL_FEATURES
761+
case WIRE_ONION_MESSAGE:
762+
#endif
760763
#if EXPERIMENTAL_FEATURES
761764
case WIRE_TX_ADD_INPUT:
762765
case WIRE_TX_REMOVE_INPUT:

wire/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ WIRE_HEADERS := wire/onion_defs.h \
1616
# We don't include peer_printgen/onion_printgen here since most don't need it.
1717
WIRE_SRC := wire/wire_sync.c \
1818
wire/wire_io.c \
19-
wire/wire_dummy.c \
2019
wire/fromwire.c \
2120
wire/peer_wire.c \
2221
wire/tlvstream.c \

wire/common_wiregen.c

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wire/common_wiregen.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- wire/extracted_onion_wire_csv 2020-03-25 10:24:12.861645774 +1030
22
+++ - 2020-03-26 13:47:13.498294435 +1030
3-
@@ -8,6 +8,25 @@
3+
@@ -8,6 +8,31 @@
44
tlvtype,tlv_payload,payment_data,8
55
tlvdata,tlv_payload,payment_data,payment_secret,byte,32
66
tlvdata,tlv_payload,payment_data,total_msat,tu64,
@@ -15,6 +15,12 @@
1515
+tlvdata,onionmsg_payload,enctlv,enctlv,byte,...
1616
+tlvtype,onionmsg_payload,blinding,12
1717
+tlvdata,onionmsg_payload,blinding,blinding,point,
18+
+tlvtype,onionmsg_payload,invoice_request,64
19+
+tlvdata,onionmsg_payload,invoice_request,invoice_request,byte,...
20+
+tlvtype,onionmsg_payload,invoice,66
21+
+tlvdata,onionmsg_payload,invoice,invoice,byte,...
22+
+tlvtype,onionmsg_payload,invoice_error,68
23+
+tlvdata,onionmsg_payload,invoice_error,invoice_error,byte,...
1824
+tlvtype,encmsg_tlvs,next_node_id,4
1925
+tlvdata,encmsg_tlvs,next_node_id,node_id,point,
2026
+tlvtype,encmsg_tlvs,next_short_channel_id,6

wire/extracted_onion_exp_offers.patch

Lines changed: 0 additions & 15 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
--- wire/extracted_peer_wire_csv 2020-03-11 10:30:35.744376417 +1030
22
+++ - 2020-03-26 13:47:13.409755567 +1030
3-
@@ -211,3 +211,8 @@
3+
@@ -211,3 +211,9 @@
44
msgdata,gossip_timestamp_filter,chain_hash,chain_hash,
55
msgdata,gossip_timestamp_filter,first_timestamp,u32,
66
msgdata,gossip_timestamp_filter,timestamp_range,u32,
77
+msgtype,onion_message,385,option_onion_messages
8-
+msgdata,onion_message,onionmsg,byte,1366
8+
+msgdata,onion_message,len,u16,
9+
+msgdata,onion_message,onionmsg,byte,len
910
+msgdata,onion_message,onion_message_tlvs,onion_message_tlvs,
1011
+tlvtype,onion_message_tlvs,blinding,2
1112
+tlvdata,onion_message_tlvs,blinding,blinding,point,

wire/extracted_peer_exp_varonionmessage.patch

Lines changed: 0 additions & 12 deletions
This file was deleted.

wire/onion_printgen.c

Lines changed: 207 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)