7 #include <boost/test/unit_test.hpp>
29 int64_t ourLastTry{0};
30 int64_t ignoreTill{0};
39 std::string clientSubVersion{};
41 int64_t ourLastSuccess{0};
43 info_stream << version << ip << services << lastTry << tried << ourLastTry
44 << ignoreTill << stat2H << stat8H << stat1D << stat1W << stat1M
45 << total << success << clientVersion << clientSubVersion
46 << blocks << ourLastSuccess;
53 BOOST_AUTO_TEST_SUITE(db_tests)
79 BOOST_AUTO_TEST_SUITE_END()
Double ended buffer combining vector and stream-like interfaces.
A combination of a network address (CNetAddr) and a (TCP) port.
bool LookupHost(const std::string &name, std::vector< CNetAddr > &vIP, unsigned int nMaxSolutions, bool fAllowLookup, DNSLookupFn dns_lookup_function)
Resolve a host string to its corresponding network addresses.
#define BOOST_CHECK(expr)
BOOST_AUTO_TEST_CASE(seederaddrinfo_test)
static SeederAddrInfo BuildSeederAddrInfo(const CService &ip, bool good, uint64_t services=NODE_NETWORK, int clientVersion=REQUIRE_VERSION)
static CNetAddr ResolveIP(const std::string &ip)
static const int PROTOCOL_VERSION
network protocol versioning