Browse Source

option-data-loss-protect: fix generate-wire.py and update.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
44e45348f2
  1. 2
      Makefile
  2. 4
      tools/generate-wire.py
  3. 2
      wire/gen_peer_wire_csv

2
Makefile

@ -6,7 +6,7 @@ CCANDIR := ccan
# Where we keep the BOLT RFCs
BOLTDIR := ../lightning-rfc/
BOLTVERSION := c93cd75d880c82fb2ff7173a99d9f49abf75f8bf
BOLTVERSION := 046f5acb1619bccf167e5539f144433495f1486b
# If you don't have (working) valgrind.
#NO_VALGRIND := 1

4
tools/generate-wire.py

@ -396,13 +396,13 @@ def find_message(messages, name):
return None
def find_message_with_option(messages, optional_messages, name, option):
fullname = name + "_" + option;
fullname = name + "_" + option.replace('-', '_')
base = find_message(messages, name)
if not base:
raise ValueError('Unknown message {}'.format(name))
m = find_message(optional_messages, name)
m = find_message(optional_messages, fullname)
if not m:
# Add a new option.
m = copy.deepcopy(base)

2
wire/gen_peer_wire_csv

@ -102,6 +102,8 @@ channel_reestablish,136
channel_reestablish,0,channel_id,32
channel_reestablish,32,next_local_commitment_number,8
channel_reestablish,40,next_remote_revocation_number,8
channel_reestablish,48,your_last_per_commitment_secret,32,option-data-loss-protect
channel_reestablish,80,my_current_per_commitment_point,33,option-data-loss-protect
announcement_signatures,259
announcement_signatures,0,channel_id,32
announcement_signatures,32,short_channel_id,8

Loading…
Cancel
Save