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

Function contains_common_chain

connectd/peer_exchange_initmsg.c:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31};
32
33static bool contains_common_chain(struct bitcoin_blkid *chains)
34{
35 for (size_t i = 0; i < tal_count(chains); i++) {
36 if (bitcoin_blkid_eq(&chains[i], &chainparams->genesis_blockhash))
37 return true;
38 }
39 return false;
40}
41
42/* Here in case we need to read another message. */
43static struct io_plan *read_init(struct io_conn *conn, struct early_peer *peer);

Callers 1

peer_init_receivedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected