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

Function init

tests/fuzz/fuzz-open_channel.c:426–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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