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

Function process_pending_channel_update

gossipd/routing.c:1156–1177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1154}
1155
1156static void process_pending_channel_update(struct daemon *daemon,
1157 struct routing_state *rstate,
1158 const struct short_channel_id *scid,
1159 const u8 *cupdate,
1160 struct peer *peer)
1161{
1162 u8 *err;
1163
1164 if (!cupdate)
1165 return;
1166
1167 err = handle_channel_update(rstate, cupdate, peer, NULL, false);
1168 if (err) {
1169 /* FIXME: We could send this error back to peer if != NULL */
1170 status_peer_debug(peer ? &peer->id : NULL,
1171 "Pending channel_update for %s: %s",
1172 type_to_string(tmpctx, struct short_channel_id,
1173 scid),
1174 sanitize_error(tmpctx, err, NULL));
1175 tal_free(err);
1176 }
1177}
1178
1179bool handle_pending_cannouncement(struct daemon *daemon,
1180 struct routing_state *rstate,

Callers 1

Calls 4

tal_freeFunction · 0.85
handle_channel_updateFunction · 0.70
type_to_stringClass · 0.50
sanitize_errorFunction · 0.50

Tested by

no test coverage detected