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

Function init

tests/fuzz/fuzz-open_channel.c:429–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429void init(int *argc, char ***argv)
430{
431 /* Don't call this if we're in unit-test mode, as libfuzz.c does it */
432 if (!tmpctx)
433 common_setup("fuzzer");
434 /* Dummy comment to satisfy check-setup-locale.sh: setup_locale(); */
435 int devnull = open("/dev/null", O_WRONLY);
436 status_setup_sync(devnull);
437 chainparams = chainparams_for_network("bitcoin");
438
439 memset(&dummy_privkey, 2, sizeof(dummy_privkey));
440 pubkey_from_privkey(&dummy_privkey, &dummy_pubkey);
441}
442
443void run(const u8 *data, size_t size)
444{

Callers

nothing calls this directly

Calls 4

common_setupFunction · 0.85
chainparams_for_networkFunction · 0.85
pubkey_from_privkeyFunction · 0.85
status_setup_syncFunction · 0.50

Tested by

no test coverage detected