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

Function init

tests/fuzz/fuzz-initial_channel.c:24–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include <wire/wire.h>
23
24void init(int *argc, char ***argv)
25{
26 /* Don't call this if we're in unit-test mode, as libfuzz.c does it */
27 if (!tmpctx)
28 common_setup("fuzzer");
29 int devnull = open("/dev/null", O_WRONLY);
30 status_setup_sync(devnull);
31 chainparams = chainparams_for_network("bitcoin");
32}
33
34#define MAX_SATS (u64)WALLY_SATOSHI_PER_BTC * WALLY_BTC_MAX
35

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