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

Function init

tests/fuzz/fuzz-init_received.c:122–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void init(int *argc, char ***argv)
123{
124 chainparams = chainparams_for_network("bitcoin");
125 /* Don't call this if we're in unit-test mode, as libfuzz.c does it */
126 if (!tmpctx)
127 common_setup("fuzzer");
128 int devnull = open("/dev/null", O_WRONLY);
129 status_setup_sync(devnull);
130 dev_towire_allow_invalid_node_id = true;
131}
132
133void run(const uint8_t *data, size_t size)
134{

Callers

nothing calls this directly

Calls 3

chainparams_for_networkFunction · 0.85
common_setupFunction · 0.85
status_setup_syncFunction · 0.50

Tested by

no test coverage detected