mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
9d57612415
The previous onion_message code required a confirmed, not-shutting-down channel, not just a connection. That's overkill; plus before widespread adoption we will want to connect directly as a last resort. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
9.5 KiB
9.5 KiB
1 | #include <bitcoin/psbt.h> |
---|---|
2 | #include <bitcoin/tx.h> |
3 | #include <common/cryptomsg.h> |
4 | #include <common/channel_config.h> |
5 | #include <common/channel_id.h> |
6 | #include <common/derive_basepoints.h> |
7 | #include <common/features.h> |
8 | #include <common/fee_states.h> |
9 | #include <common/per_peer_state.h> |
10 | # Begin! (passes gossipd-client fd) |
11 | # channeld->master received tx_sigs from peer |
12 | # master->channeld send our tx_sigs to peer |
13 | # master->channeld funding hit new depth(funding locked if >= lock depth) |
14 | # Tell channel to offer this htlc |
15 | # Reply; synchronous since IDs have to increment. |
16 | # Empty failure message means success. |
17 | # Main daemon found out the preimage for an HTLC |
18 | #include <bitcoin/preimage.h> |
19 | # Main daemon says HTLC failed |
20 | # When we receive funding_locked. |
21 | #include <common/penalty_base.h> |
22 | # RCVD_ADD_COMMIT: we're now committed to their new offered HTLCs. |
23 | # RCVD_REMOVE_COMMIT: we're now no longer committed to these HTLCs. |
24 | #include <common/htlc_wire.h> |
25 | # Tell peer to shut down channel. |
26 | # Peer told us that channel is shutting down |
27 | # Re-enable commit timer. |
28 | # master -> channeld: do you have a memleak? |
29 | # Peer presented proof it was from the future. |
30 | # This is NULL if option_static_remotekey. |
31 | # Handle a channel specific feerate base ppm configuration |
32 | # When we receive announcement_signatures for channel announce |
33 | # Ask channeld to send a error message. Used in forgetting channel case. |
34 | # Tell master channeld has sent the error message. |