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