Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/db.h
Show All 13 Lines | |||||
#include <map> | #include <map> | ||||
#include <set> | #include <set> | ||||
#include <vector> | #include <vector> | ||||
#define MIN_RETRY 1000 | #define MIN_RETRY 1000 | ||||
#define REQUIRE_VERSION 70001 | #define REQUIRE_VERSION 70001 | ||||
class CAddress; | |||||
static inline int GetRequireHeight(const bool testnet = fTestNet) { | static inline int GetRequireHeight(const bool testnet = fTestNet) { | ||||
return testnet ? 500000 : 350000; | return testnet ? 500000 : 350000; | ||||
} | } | ||||
static inline std::string ToString(const CService &ip) { | static inline std::string ToString(const CService &ip) { | ||||
std::string str = ip.ToString(); | std::string str = ip.ToString(); | ||||
while (str.size() < 22) { | while (str.size() < 22) { | ||||
str += ' '; | str += ' '; | ||||
▲ Show 20 Lines • Show All 415 Lines • Show Last 20 Lines |