| 120 | } |
| 121 | |
| 122 | void init(int *argc, char ***argv) |
| 123 | { |
| 124 | chainparams = chainparams_for_network("bitcoin"); |
| 125 | /* Don't call this if we're in unit-test mode, as libfuzz.c does it */ |
| 126 | if (!tmpctx) |
| 127 | common_setup("fuzzer"); |
| 128 | int devnull = open("/dev/null", O_WRONLY); |
| 129 | status_setup_sync(devnull); |
| 130 | dev_towire_allow_invalid_node_id = true; |
| 131 | } |
| 132 | |
| 133 | void run(const uint8_t *data, size_t size) |
| 134 | { |
nothing calls this directly
no test coverage detected