mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
gossip: Added message for unsuccessful connection attempts
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
6a9f40f7cc
commit
f5147f27c9
@ -1913,6 +1913,7 @@ static struct io_plan *recv_req(struct io_conn *conn, struct daemon_conn *master
|
||||
case WIRE_GOSSIP_RESOLVE_CHANNEL_REPLY:
|
||||
case WIRE_GOSSIP_PEER_CONNECTED:
|
||||
case WIRE_GOSSIP_PEER_ALREADY_CONNECTED:
|
||||
case WIRE_GOSSIP_PEER_CONNECTION_FAILED:
|
||||
case WIRE_GOSSIP_PEER_NONGOSSIP:
|
||||
case WIRE_GOSSIP_GET_UPDATE:
|
||||
case WIRE_GOSSIP_GET_UPDATE_REPLY:
|
||||
|
@ -43,6 +43,12 @@ gossip_peer_connected,,lfeatures,lflen*u8
|
||||
gossip_peer_already_connected,3015
|
||||
gossip_peer_already_connected,,id,struct pubkey
|
||||
|
||||
# gossipd -> master: attempted to connect, unsuccessful, gave up
|
||||
gossip_peer_connection_failed,3020
|
||||
gossip_peer_connection_failed,,id,struct pubkey
|
||||
gossip_peer_connection_failed,,timeout,u32
|
||||
gossip_peer_connection_failed,,attempts,u32
|
||||
|
||||
# Gossipd -> master: peer sent non-gossip packet. Two fds: peer and gossip
|
||||
gossip_peer_nongossip,3003
|
||||
gossip_peer_nongossip,,id,struct pubkey
|
||||
|
|
@ -133,6 +133,9 @@ static unsigned gossip_msg(struct subd *gossip, const u8 *msg, const int *fds)
|
||||
case WIRE_GOSSIP_PEER_ALREADY_CONNECTED:
|
||||
peer_already_connected(gossip->ld, msg);
|
||||
break;
|
||||
case WIRE_GOSSIP_PEER_CONNECTION_FAILED:
|
||||
/* TODO(cdecker) Implement handler */
|
||||
break;
|
||||
case WIRE_GOSSIP_PEER_NONGOSSIP:
|
||||
if (tal_count(fds) != 2)
|
||||
return 2;
|
||||
|
Loading…
Reference in New Issue
Block a user