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

Function test_peer_read

tests/fuzz/fuzz-open_channel.c:242–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242static u8 *test_peer_read(const tal_t *ctx, struct per_peer_state *pps)
243{
244 u8 *msg = test_sync_read(ctx, pps->peer_fd);
245 if (!msg)
246 peer_failed_connection_lost();
247
248 status_peer_io(LOG_IO_IN, NULL, msg);
249
250 return msg;
251}
252
253void test_validate_initial_commitment_signature(int hsm_fd,
254 struct bitcoin_tx *tx,

Callers

nothing calls this directly

Calls 3

test_sync_readFunction · 0.85
status_peer_ioFunction · 0.50

Tested by

no test coverage detected