MCPcopy Create free account
hub / github.com/ElementsProject/lightning / handle_pong_in

Function handle_pong_in

connectd/multiplex.c:640–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638}
639
640static void handle_pong_in(struct peer *peer, const u8 *msg)
641{
642 /* gossipd doesn't log IO, so we log it here. */
643 status_peer_io(LOG_IO_IN, &peer->id, msg);
644
645 switch (peer->expecting_pong) {
646 case PONG_EXPECTED_COMMAND:
647 handle_ping_reply(peer, msg);
648 /* fall thru */
649 case PONG_EXPECTED_PROBING:
650 peer->expecting_pong = PONG_UNEXPECTED;
651 return;
652 case PONG_UNEXPECTED:
653 status_debug("Unexpected pong?");
654 return;
655 }
656 abort();
657}
658
659/* Forward to gossipd */
660static void handle_gossip_in(struct peer *peer, const u8 *msg)

Callers 1

handle_message_locallyFunction · 0.85

Calls 3

handle_ping_replyFunction · 0.85
abortFunction · 0.85
status_peer_ioFunction · 0.50

Tested by

no test coverage detected