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

Function init

tests/fuzz/fuzz-handle_onion_message.c:59–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void init(int *argc, char ***argv)
60{
61 /* Don't call this if we're in unit-test mode, as libfuzz.c does it */
62 if (!tmpctx)
63 common_setup("fuzzer");
64 lightningd_fd = open("/dev/null", O_WRONLY);
65 status_setup_sync(lightningd_fd);
66 chainparams = chainparams_for_network("bitcoin");
67 fuzz_allow_siphash_seed = true;
68
69 memset(&priv, 'b', sizeof(priv));
70}
71
72void run(const uint8_t *data, size_t size)
73{

Callers

nothing calls this directly

Calls 3

common_setupFunction · 0.85
chainparams_for_networkFunction · 0.85
status_setup_syncFunction · 0.50

Tested by

no test coverage detected