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

Function closing_read_peer_msg

closingd/closingd.c:118–130  ·  view source on GitHub ↗

Handle random messages we might get, returning the first non-handled one. */

Source from the content-addressed store, hash-verified

116
117/* Handle random messages we might get, returning the first non-handled one. */
118static u8 *closing_read_peer_msg(const tal_t *ctx,
119 struct per_peer_state *pps,
120 const struct channel_id *channel_id)
121{
122 for (;;) {
123 u8 *msg;
124
125 clean_tmpctx();
126 msg = peer_read(ctx, pps);
127 if (!handle_peer_error(pps, channel_id, msg))
128 return msg;
129 }
130}
131
132static void send_offer(struct per_peer_state *pps,
133 const struct chainparams *chainparams,

Callers 1

receive_offerFunction · 0.85

Calls 3

clean_tmpctxFunction · 0.85
peer_readFunction · 0.85
handle_peer_errorFunction · 0.50

Tested by

no test coverage detected