The new spec sends `batch_size` in `start_batch` and removes it from `commitment_signed` so we need to stop processing it in `commitment_signed`. Since the tlv is now reduced to one element and that automagically turns it into a direct use TLV so we have to update the code everywhere it is referenced.
33 lines
1.4 KiB
Diff
33 lines
1.4 KiB
Diff
diff --git a/wire/peer_wire.csv b/wire/peer_wire.csv
|
|
index 9abcb0e64..e2aae8efb 100644
|
|
--- a/wire/peer_wire.csv
|
|
+++ b/wire/peer_wire.csv
|
|
@@ -1,3 +1,6 @@
|
|
+msgtype,protocol_batch_element,0
|
|
+msgdata,protocol_batch_element,channel_id,channel_id,
|
|
+msgdata,protocol_batch_element,element_size,u16,
|
|
msgtype,init,16
|
|
msgdata,init,gflen,u16,
|
|
msgdata,init,globalfeatures,byte,gflen
|
|
@@ -293,6 +296,12 @@ msgdata,update_fail_malformed_htlc,channel_id,channel_id,
|
|
msgdata,update_fail_malformed_htlc,id,u64,
|
|
msgdata,update_fail_malformed_htlc,sha256_of_onion,sha256,
|
|
msgdata,update_fail_malformed_htlc,failure_code,u16,
|
|
+msgtype,start_batch,127
|
|
+msgdata,start_batch,channel_id,channel_id,
|
|
+msgdata,start_batch,batch_size,u16,
|
|
+msgdata,start_batch,batch_info,start_batch_tlvs,
|
|
+tlvtype,start_batch_tlvs,batch_info,1
|
|
+tlvdata,start_batch_tlvs,batch_info,message_type,u16,
|
|
msgtype,commitment_signed,132
|
|
msgdata,commitment_signed,channel_id,channel_id,
|
|
msgdata,commitment_signed,signature,signature,
|
|
@@ -309,6 +309,5 @@ msgdata,commitment_signed,num_htlcs,u16,
|
|
msgdata,commitment_signed,htlc_signature,signature,num_htlcs
|
|
msgdata,commitment_signed,splice_channel_id,commitment_signed_tlvs,
|
|
tlvtype,commitment_signed_tlvs,splice_info,0
|
|
-tlvdata,commitment_signed_tlvs,splice_info,batch_size,u16,
|
|
tlvdata,commitment_signed_tlvs,splice_info,funding_txid,sha256,
|
|
msgtype,revoke_and_ack,133
|
|
msgdata,revoke_and_ack,channel_id,channel_id,
|