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

Function fromwire_chainparams

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

Source from the content-addressed store, hash-verified

265}
266
267void fromwire_chainparams(const u8 **cursor, size_t *max,
268 const struct chainparams **chainparams)
269{
270 struct bitcoin_blkid genesis;
271 fromwire_bitcoin_blkid(cursor, max, &genesis);
272 *chainparams = chainparams_by_chainhash(&genesis);
273}

Callers

nothing calls this directly

Calls 2

fromwire_bitcoin_blkidFunction · 0.85
chainparams_by_chainhashFunction · 0.70

Tested by

no test coverage detected