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

Function init

tests/fuzz/fuzz-full_channel.c:229–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void init(int *argc, char ***argv)
230{
231 /* Don't call this if we're in unit-test mode, as libfuzz.c does it */
232 if (!tmpctx)
233 common_setup("fuzzer");
234 chainparams = chainparams_for_network("bitcoin");
235 int devnull = open("/dev/null", O_WRONLY);
236 status_setup_sync(devnull);
237 fuzz_allow_siphash_seed = true;
238}
239
240struct pending_htlc {
241 enum side sender;

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