From 61c6b8b25a66100c4d3bb3618cd1924a687b0818 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 17 Aug 2018 13:46:33 +0930 Subject: [PATCH] tools/generate-wire.py: mark your_last_per_commitment_secret as a struct secret. Without an override, the tool assumes it's a sha256. Signed-off-by: Rusty Russell --- tools/generate-wire.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/generate-wire.py b/tools/generate-wire.py index 4355810ce..e2801c5ad 100755 --- a/tools/generate-wire.py +++ b/tools/generate-wire.py @@ -78,7 +78,8 @@ typemap = { ('announcement_signatures', 'short_channel_id'): FieldType('struct short_channel_id'), ('channel_announcement', 'short_channel_id'): FieldType('struct short_channel_id'), ('channel_update', 'short_channel_id'): FieldType('struct short_channel_id'), - ('revoke_and_ack', 'per_commitment_secret'): FieldType('struct secret') + ('revoke_and_ack', 'per_commitment_secret'): FieldType('struct secret'), + ('channel_reestablish_option_data_loss_protect', 'your_last_per_commitment_secret'): FieldType('struct secret') } # Partial names that map to a datatype