core-lightning/channeld/channeld_wire.csv
Rusty Russell e609bc934e channeld: tell lightningd about local anchor for each commitment tx.
It's going to want to remember these, in case it encounters peers'
commitment tx and needs to boost it with CPFP on the anchor.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2023-10-27 11:19:56 +10:30

15 KiB

1#include <bitcoin/psbt.h>
2#include <bitcoin/tx.h>
3#include <channeld/inflight.h>
4#include <common/bip32.h>
5#include <common/blockheight_states.h>
6#include <common/cryptomsg.h>
7#include <common/channel_config.h>
8#include <common/channel_id.h>
9#include <common/channel_type.h>
10#include <common/derive_basepoints.h>
11#include <common/features.h>
12#include <common/fee_states.h>
13# Begin! (passes gossipd-client fd)
14# master->channeld funding hit new depth(funding locked if >= lock depth)
15# alias != NULL if zeroconf and short_channel_id == NULL
16# short_channel_id != NULL once we have 3+ confirmations
17# Tell channel to offer this htlc
18# Reply; synchronous since IDs have to increment.
19# Empty failure message means success.
20# Main daemon found out the preimage for an HTLC
21#include <bitcoin/preimage.h>
22# Main daemon says HTLC failed
23# When we receive channel_ready.
24# When we receive funding_locked.
25#include <common/penalty_base.h>
26# lightningd needs to track our anchor outputs on remote txs.
27# RCVD_ADD_COMMIT: we're now committed to their new offered HTLCs.
28# RCVD_REMOVE_COMMIT: we're now no longer committed to these HTLCs.
29# Inflight splice commitments
30#include <common/htlc_wire.h>
31#include <wally_bip32.h>
32# master->channeld: Update an active splice
33# channeld->master: Splice update complete
34# channeld->master: Lookup a transaction
35# master->channeld: Retrieved transaction
36# master->channeld: User has signed psbt and it's ready to complete
37# channeld->master: Signed psbt is completed
38# channeld->master: A feerate error has occured
39# channeld->master: Add an inflight to the DB
40# master->channeld: Inflight saved successfully
41# channeld->master: Update inflight with sigs
42# channeld->master: A funding error has occured
43# channeld->master: A splice state error has occured
44# Tell peer to shut down channel.
45# Peer told us that channel is shutting down
46# Re-enable commit timer.
47# master -> channeld: do you have a memleak?
48# Peer presented proof it was from the future.
49# This is NULL if option_static_remotekey.
50# When we receive announcement_signatures for channel announce
51# Ask channeld to send a error message. Used in forgetting channel case.
52# Tell master channeld has sent the error message.
53# Channeld: tell gossipd to make channel_update to enable/disable.
54# Channeld: tell gossipd about our channel_announcement
55# Channeld: tell gossipd about this (as-yet) unannounced channel
56# Ask channeld to quiesce.
57# Tell master we're upgrading the commitment tx.
58# Tell peer about our latest and greatest blockheight.