core-lightning/openingd/opening_wire.csv
lisa neigut c00e0d2936 funding: rename fundchannel_continue -> _complete
Renaming. "complete" more accurately describes what we're doing here.
2019-06-12 02:22:43 +00:00

5.6 KiB

1#include <common/cryptomsg.h>
2#include <common/channel_config.h>
3#include <common/derive_basepoints.h>
4#include <common/per_peer_state.h>
5opening_init,6000
6# Which network are we configured for?
7opening_init,,chain_hash,struct bitcoin_blkid
8# Base configuration we'll offer (channel reserve will vary with amount)
9opening_init,,our_config,struct channel_config
10# Minimum/maximum configuration values we'll accept
11opening_init,,max_to_self_delay,u32
12opening_init,,min_effective_htlc_capacity_msat,struct amount_msat
13opening_init,,pps,struct per_peer_state
14opening_init,,our_basepoints,struct basepoints
15opening_init,,our_funding_pubkey,struct pubkey
16# Constraints in case the other end tries to open a channel.
17opening_init,,minimum_depth,u32
18opening_init,,min_feerate,u32
19opening_init,,max_feerate,u32
20opening_init,,lfeatures_len,u16
21opening_init,,lfeatures,lfeatures_len*u8
22# Optional msg to send.
23opening_init,,len,u16
24opening_init,,msg,len*u8
25# Openingd->master: they offered channel, should we continue?
26opening_got_offer,6005
27opening_got_offer,,funding_satoshis,struct amount_sat
28opening_got_offer,,push_msat,struct amount_msat
29opening_got_offer,,dust_limit_satoshis,struct amount_sat
30opening_got_offer,,max_htlc_value_in_flight_msat,struct amount_msat
31opening_got_offer,,channel_reserve_satoshis,struct amount_sat
32opening_got_offer,,htlc_minimum_msat,struct amount_msat
33opening_got_offer,,feerate_per_kw,u32
34opening_got_offer,,to_self_delay,u16
35opening_got_offer,,max_accepted_htlcs,u16
36opening_got_offer,,channel_flags,u8
37opening_got_offer,,shutdown_len,u16
38opening_got_offer,,shutdown_scriptpubkey,shutdown_len*u8
39# master->openingd: optional rejection message
40opening_got_offer_reply,6105
41opening_got_offer_reply,,rejection,?wirestring
42#include <common/bip32.h>
43#include <common/htlc_wire.h>
44# Master->openingd: please fund a channel.
45opening_funder,6001
46opening_funder,,funding_satoshis,struct amount_sat
47opening_funder,,push_msat,struct amount_msat
48opening_funder,,feerate_per_kw,u32
49opening_funder,,change_satoshis,struct amount_sat
50opening_funder,,change_keyindex,u32
51opening_funder,,channel_flags,u8
52#include <common/utxo.h>
53opening_funder,,num_inputs,u16
54opening_funder,,inputs,num_inputs*struct utxo
55opening_funder,,bip32,struct ext_key
56# Openingd->master: we've successfully offered channel.
57# This gives their sig, means we can broadcast tx: we're done.
58opening_funder_reply,6101
59opening_funder_reply,,their_config,struct channel_config
60opening_funder_reply,,first_commit,struct bitcoin_tx
61opening_funder_reply,,first_commit_sig,struct bitcoin_signature
62opening_funder_reply,,pps,struct per_peer_state
63opening_funder_reply,,revocation_basepoint,struct pubkey
64opening_funder_reply,,payment_basepoint,struct pubkey
65opening_funder_reply,,htlc_basepoint,struct pubkey
66opening_funder_reply,,delayed_payment_basepoint,struct pubkey
67opening_funder_reply,,their_per_commit_point,struct pubkey
68opening_funder_reply,,minimum_depth,u32
69opening_funder_reply,,remote_fundingkey,struct pubkey
70opening_funder_reply,,funding_txid,struct bitcoin_txid
71opening_funder_reply,,funding_txout,u16
72opening_funder_reply,,feerate_per_kw,u32
73opening_funder_reply,,our_channel_reserve_satoshis,struct amount_sat
74opening_funder_reply,,shutdown_len,u16
75opening_funder_reply,,shutdown_scriptpubkey,shutdown_len*u8
76# master->openingd: start channel establishment for a funding
77# tx that will be paid for by an external wallet
78opening_funder_start,6002
79opening_funder_start,,funding_satoshis,struct amount_sat
80opening_funder_start,,push_msat,struct amount_msat
81opening_funder_start,,feerate_per_kw,u32
82opening_funder_start,,channel_flags,u8
83# openingd->master: send back output script for 2-of-2 funding output
84opening_funder_start_reply,6102
85opening_funder_start_reply,,script_len,u8
86opening_funder_start_reply,,scriptpubkey,script_len*u8
87# master->openingd: complete channel establishment for a funding
88# tx that will be paid for by an external wallet
89# response to this is a normal `opening_funder_reply` ??
90opening_funder_complete,6012
91opening_funder_complete,,funding_txid,struct bitcoin_txid
92opening_funder_complete,,funding_txout,u16
93#master->openingd: cancel channel establishment for a funding
94opening_funder_cancel,6013
95# Openingd->master: we failed to negotiation channel
96opening_funder_failed,6004
97opening_funder_failed,,reason,wirestring
98opening_funder_failed,,is_err,bool
99# Openingd->master: they offered channel.
100# This gives their txid and info, means we can send funding_signed: we're done.
101opening_fundee,6003
102opening_fundee,,their_config,struct channel_config
103opening_fundee,,first_commit,struct bitcoin_tx
104opening_fundee,,first_commit_sig,struct bitcoin_signature
105opening_fundee,,pps,struct per_peer_state
106opening_fundee,,revocation_basepoint,struct pubkey
107opening_fundee,,payment_basepoint,struct pubkey
108opening_fundee,,htlc_basepoint,struct pubkey
109opening_fundee,,delayed_payment_basepoint,struct pubkey
110opening_fundee,,their_per_commit_point,struct pubkey
111opening_fundee,,remote_fundingkey,struct pubkey
112opening_fundee,,funding_txid,struct bitcoin_txid
113opening_fundee,,funding_txout,u16
114opening_fundee,,funding_satoshis,struct amount_sat
115opening_fundee,,push_msat,struct amount_msat
116opening_fundee,,channel_flags,u8
117opening_fundee,,feerate_per_kw,u32
118# The funding signed message: send this and we're committed.
119opening_fundee,,msglen,u16
120opening_fundee,,funding_signed_msg,msglen*u8
121opening_fundee,,our_channel_reserve_satoshis,struct amount_sat
122opening_fundee,,shutdown_len,u16
123opening_fundee,,shutdown_scriptpubkey,shutdown_len*u8
124# master -> openingd: do you have a memleak?
125opening_dev_memleak,6033
126opening_dev_memleak_reply,6133
127opening_dev_memleak_reply,,leak,bool