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

Function contains_common_chain

connectd/peer_exchange_initmsg.c:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40};
41
42static bool contains_common_chain(struct bitcoin_blkid *chains)
43{
44 for (size_t i = 0; i < tal_count(chains); i++) {
45 if (bitcoin_blkid_eq(&chains[i], &chainparams->genesis_blockhash))
46 return true;
47 }
48 return false;
49}
50
51/* Here in case we need to read another message. */
52static 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