#undef NDEBUG #include"DnsSeed/get.hpp" #include"Ev/Io.hpp" #include"Ev/start.hpp" #include int main() { auto code = Ev::lift().then([]() { return DnsSeed::can_get(); }).then([&](std::string err) { if (err != "") /* Trivial exit. */ return Ev::lift(0); return Ev::lift().then([]() { return DnsSeed::get("lseed.bitcoinstats.com"); }).then([](std::vector results) { /* Nothing to check, mostly just a * "does not crash" test. */ return DnsSeed::get("lseed.darosior.ninja", "8.8.8.8"); }).then([](std::vector results) { return Ev::lift(0); }); }); return Ev::start(code); }