rgb-cln/openingd/dualopend_wire.csv

13 KiB

1#include <bitcoin/chainparams.h>
2#include <bitcoin/psbt.h>
3#include <common/cryptomsg.h>
4#include <common/channel_config.h>
5#include <common/channel_id.h>
6#include <common/channel_type.h>
7#include <common/derive_basepoints.h>
8#include <common/features.h>
9#include <common/fee_states.h>
10#include <common/htlc_wire.h>
11#include <common/penalty_base.h>
12#include <common/tx_roles.h>
13#include <secp256k1.h>
14#include <wire/peer_wire.h>
15# Which network are we configured for?
16# Base configuration we'll offer
17# Minimum/maximum configuration values we'll accept
18# Constraints in case the other end tries to open a channel.
19# master-dualopend: peer has reconnected
20# master->dualopend: reply back with our first funding info/contribs
21# must go last because of embedded tu32
22# master->dualopend: reply back with our funding info/contribs
23# dualopend->master: is this a valid RBF candidate transaction?
24# master->dualopend: this is a valid RBF candidate transaction
25# master->dualopend: attempt an RBF
26# dualopend->master: about to send first commitment_signed
27# master->dualopend: channel saved to disk
28# get some signatures for the funding_tx.
29# dualopend->master: peer updated the psbt
30# master->dualopend: we updated the psbt
31# master->dualopend: fail this channel open
32# must go last because embedded tu32
33# dualopend->master received tx_sigs from peer
34# master->dualopend send our tx_sigs to peer
35# dualopend->master tx sigs transmitted to peer
36# dualopend->peer peer locked channel
37# dualopend->master this channel has been locked
38# master->dualopend funding reached depth; tell peer
39# Tell peer to shut down channel.
40# Peer told us that channel is shutting down
41# Peer presented proof it was from the future.
42# master -> dualopend: do you have a memleak?
43# must go last because of embedded tu32
44# dualopend -> master: are inputs in this psbt confirmed?
45# master -> dualopend: confirms inputs are valid
46# dualopend -> master: validate liqudity offer sig