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

Function fromwire_chainparams

bitcoin/block.c:273–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273void fromwire_chainparams(const u8 **cursor, size_t *max,
274 const struct chainparams **chainparams)
275{
276 struct bitcoin_blkid genesis;
277 fromwire_bitcoin_blkid(cursor, max, &genesis);
278 *chainparams = chainparams_by_chainhash(&genesis);
279}

Callers

nothing calls this directly

Calls 2

fromwire_bitcoin_blkidFunction · 0.85
chainparams_by_chainhashFunction · 0.70

Tested by

no test coverage detected