mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
c9b82bf1d2
It's probably not worth fixing for the other daemons. Changelog-Changed: JSON-RPC: `ping` now only works if we have a channel with the peer. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
10 KiB
10 KiB
1 | #include <bitcoin/psbt.h> |
---|---|
2 | #include <bitcoin/tx.h> |
3 | #include <common/blockheight_states.h> |
4 | #include <common/cryptomsg.h> |
5 | #include <common/channel_config.h> |
6 | #include <common/channel_id.h> |
7 | #include <common/channel_type.h> |
8 | #include <common/derive_basepoints.h> |
9 | #include <common/features.h> |
10 | #include <common/fee_states.h> |
11 | #include <common/per_peer_state.h> |
12 | # Begin! (passes gossipd-client fd) |
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. |
35 | # Ask channeld to quiesce. |
36 | # Tell master we're upgrading the commitment tx. |
37 | # Tell peer about our latest and greatest blockheight. |
38 | # Ping/pong test. Waits for a reply if it expects one. |
39 | # False if we there was already a ping in progress. |