diff --git a/devtools/decodemsg.c b/devtools/decodemsg.c index d5bc708abfce..2a5d05c7efe9 100644 --- a/devtools/decodemsg.c +++ b/devtools/decodemsg.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include @@ -50,6 +51,7 @@ int main(int argc, char *argv[]) bool (*printwire)(const u8 *msg) = printpeer_wire_message; bool ok = true; + common_setup(argv[0]); setup_locale(); opt_register_noarg("--onion", opt_set_onionprint, &printwire, diff --git a/devtools/route.c b/devtools/route.c index ebf809301a72..30a87a26796a 100644 --- a/devtools/route.c +++ b/devtools/route.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -70,6 +71,8 @@ int main(int argc, char *argv[]) bool clean_topology = false; size_t num_channel_updates_rejected; + common_setup(argv[0]); + opt_register_noarg("--clean-topology", opt_set_bool, &clean_topology, "Clean up topology before run"); opt_register_noarg("-h|--help", opt_usage_and_exit,