| 424 | } |
| 425 | |
| 426 | void 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 | |
| 440 | void run(const u8 *data, size_t size) |
| 441 | { |
nothing calls this directly
no test coverage detected