| 1186 | } |
| 1187 | |
| 1188 | static struct io_plan *recv_req(struct io_conn *conn, |
| 1189 | const u8 *msg, |
| 1190 | struct info *info) |
| 1191 | { |
| 1192 | enum channeld_wire t = fromwire_peektype(msg); |
| 1193 | |
| 1194 | switch (t) { |
| 1195 | /* We ignore these */ |
| 1196 | case WIRE_CHANNELD_SEND_ERROR: |
| 1197 | case WIRE_CHANNELD_SENDING_COMMITSIG_REPLY: |
| 1198 | case WIRE_CHANNELD_GOT_REVOKE_REPLY: |
| 1199 | case WIRE_CHANNELD_GOT_COMMITSIG_REPLY: |
| 1200 | goto out; |
| 1201 | case WIRE_CHANNELD_INIT: |
| 1202 | info->channel = handle_init(info, msg); |
| 1203 | goto out; |
| 1204 | case WIRE_CHANNELD_BLOCKHEIGHT: |
| 1205 | handle_blockheight(info, msg); |
| 1206 | goto out; |
| 1207 | case WIRE_CHANNELD_OFFER_HTLC: |
| 1208 | handle_offer_htlc(info, msg); |
| 1209 | goto out; |
| 1210 | case WIRE_CHANNELD_FEERATES: |
| 1211 | handle_feerates(info, msg); |
| 1212 | goto out; |
| 1213 | case WIRE_CHANNELD_FUNDING_DEPTH: |
| 1214 | handle_funding_depth(info, msg); |
| 1215 | goto out; |
| 1216 | case WIRE_CHANNELD_DEV_MEMLEAK: |
| 1217 | handle_dev_memleak(info, msg); |
| 1218 | goto out; |
| 1219 | case WIRE_CHANNELD_DEV_PEER_SHACHAIN: |
| 1220 | handle_dev_peer_shachain(info, msg); |
| 1221 | goto out; |
| 1222 | /* No incoming HTLCs, these should not happen */ |
| 1223 | case WIRE_CHANNELD_FULFILL_HTLC: |
| 1224 | case WIRE_CHANNELD_FAIL_HTLC: |
| 1225 | /* Don't try closing this channel! */ |
| 1226 | case WIRE_CHANNELD_SEND_SHUTDOWN: |
| 1227 | /* Don't try to splice */ |
| 1228 | case WIRE_CHANNELD_SPLICE_INIT: |
| 1229 | case WIRE_CHANNELD_SPLICE_UPDATE: |
| 1230 | case WIRE_CHANNELD_SPLICE_SIGNED: |
| 1231 | case WIRE_CHANNELD_SPLICE_CONFIRMED_INIT: |
| 1232 | case WIRE_CHANNELD_SPLICE_CONFIRMED_SIGNED: |
| 1233 | case WIRE_CHANNELD_SPLICE_SENDING_SIGS: |
| 1234 | case WIRE_CHANNELD_SPLICE_CONFIRMED_UPDATE: |
| 1235 | case WIRE_CHANNELD_SPLICE_LOOKUP_TX: |
| 1236 | case WIRE_CHANNELD_SPLICE_LOOKUP_TX_RESULT: |
| 1237 | case WIRE_CHANNELD_SPLICE_FEERATE_ERROR: |
| 1238 | case WIRE_CHANNELD_SPLICE_FUNDING_ERROR: |
| 1239 | case WIRE_CHANNELD_SPLICE_ABORT: |
| 1240 | case WIRE_CHANNELD_STFU: |
| 1241 | case WIRE_CHANNELD_CONFIRMED_STFU: |
| 1242 | case WIRE_CHANNELD_ABORT: |
| 1243 | /* Not supported */ |
| 1244 | case WIRE_CHANNELD_DEV_REENABLE_COMMIT: |
| 1245 | case WIRE_CHANNELD_DEV_QUIESCE: |
nothing calls this directly
no test coverage detected