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};
45 << lastTry << tried << ourLastTry << ignoreTill << stat2H
46 << stat8H << stat1D << stat1W << stat1M << total << success
47 << clientVersion << clientSubVersion << blocks << ourLastSuccess
48 << checkpointVerified;
55BOOST_AUTO_TEST_SUITE(db_tests)
101BOOST_AUTO_TEST_SUITE_END()
static constexpr SerParams V1_DISK
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 auto WithParams(const Params ¶ms, T &&t)
Return a wrapper around t that (de)serializes it with specified parameter params.
static const int PROTOCOL_VERSION
network protocol versioning