| 57 | } |
| 58 | |
| 59 | void 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 | |
| 72 | void run(const uint8_t *data, size_t size) |
| 73 | { |
nothing calls this directly
no test coverage detected