7#include <boost/test/unit_test.hpp>
18 bool checkpointVerified =
true) {
40 std::string clientSubVersion{};
45 << ignoreTill << stat2H << stat8H << stat1D << stat1W << stat1M
46 << total << success << clientVersion << clientSubVersion
47 << blocks << ourLastSuccess << checkpointVerified;
void Update(bool good, int64_t age, double tau)
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)
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
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