| 1154 | } |
| 1155 | |
| 1156 | static 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 | |
| 1179 | bool handle_pending_cannouncement(struct daemon *daemon, |
| 1180 | struct routing_state *rstate, |
no test coverage detected