protocol: add TLV for shutdown message, use 100 as "wrong_funding" outpoint.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2021-03-15 14:10:44 +10:30
parent cc6d2afe21
commit 30145209a9
10 changed files with 200 additions and 16 deletions

View File

@@ -90,6 +90,10 @@ msgtype,shutdown,38
msgdata,shutdown,channel_id,channel_id,
msgdata,shutdown,len,u16,
msgdata,shutdown,scriptpubkey,byte,len
msgdata,shutdown,tlvs,shutdown_tlvs,
tlvtype,shutdown_tlvs,wrong_funding,100
tlvdata,shutdown_tlvs,wrong_funding,txid,sha256,
tlvdata,shutdown_tlvs,wrong_funding,outnum,u32,
msgtype,closing_signed,39
msgdata,closing_signed,channel_id,channel_id,
msgdata,closing_signed,fee_satoshis,u64,
1 msgtype,init,16
90 msgdata,shutdown,channel_id,channel_id,
91 msgdata,shutdown,len,u16,
92 msgdata,shutdown,scriptpubkey,byte,len
93 msgdata,shutdown,tlvs,shutdown_tlvs,
94 tlvtype,shutdown_tlvs,wrong_funding,100
95 tlvdata,shutdown_tlvs,wrong_funding,txid,sha256,
96 tlvdata,shutdown_tlvs,wrong_funding,outnum,u32,
97 msgtype,closing_signed,39
98 msgdata,closing_signed,channel_id,channel_id,
99 msgdata,closing_signed,fee_satoshis,u64,