mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
1b6ff0b2fc
This is an internal type: it has no API guarantees (indeed, I'm about to change it, which is how I discovered scb was using it). Fortunately for every case we care about, it is actually a wireaddr (in theory the peer can connect locally using a local socket, but this is mostly for testing and is a very strange setup, and so simply don't do scb for those). In this case, the wire encoding is a single byte followed by the wireaddr, so open-code that in scb_wire.csv for compatibility. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
24 lines
766 B
Plaintext
24 lines
766 B
Plaintext
#include <common/node_id.h>
|
|
#include <common/channel_id.h>
|
|
#include <common/wireaddr.h>
|
|
#include <common/channel_type.h>
|
|
#include <common/amount.h>
|
|
#include <bitcoin/tx.h>
|
|
|
|
# scb_chan stores min. info required to sweep the peer's force close.
|
|
subtype,scb_chan
|
|
subtypedata,scb_chan,id,u64,
|
|
subtypedata,scb_chan,cid,channel_id,
|
|
subtypedata,scb_chan,node_id,node_id,
|
|
subtypedata,scb_chan,unused,u8,
|
|
subtypedata,scb_chan,addr,wireaddr,
|
|
subtypedata,scb_chan,funding,bitcoin_outpoint,
|
|
subtypedata,scb_chan,funding_sats,amount_sat,
|
|
subtypedata,scb_chan,type,channel_type,
|
|
|
|
msgtype,static_chan_backup,6135,
|
|
msgdata,static_chan_backup,version,u64,
|
|
msgdata,static_chan_backup,timestamp,u32,
|
|
msgdata,static_chan_backup,num,u16,
|
|
msgdata,static_chan_backup,channels,scb_chan,num
|