7#include <boost/test/unit_test.hpp>
18 bool checkpointVerified =
true) {
30 int64_t ourLastTry{0};
31 int64_t ignoreTill{0};
40 std::string clientSubVersion{};
42 int64_t ourLastSuccess{0};
44 info_stream << version << ip << services << lastTry << tried << ourLastTry
45 << ignoreTill << stat2H << stat8H << stat1D << stat1W << stat1M
46 << total << success << clientVersion << clientSubVersion
47 << blocks << ourLastSuccess << checkpointVerified;
54BOOST_AUTO_TEST_SUITE(db_tests)
100BOOST_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, bool checkpointVerified=true)
static CNetAddr ResolveIP(const std::string &ip)
static const int PROTOCOL_VERSION
network protocol versioning