Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/bitcoin.h
Show All 14 Lines | |||||
static inline unsigned short GetDefaultPort() { | static inline unsigned short GetDefaultPort() { | ||||
return Params().GetDefaultPort(); | return Params().GetDefaultPort(); | ||||
} | } | ||||
// After the 1000th addr, the seeder will only add one more address per addr | // After the 1000th addr, the seeder will only add one more address per addr | ||||
// message. | // message. | ||||
static const unsigned int ADDR_SOFT_CAP = 1000; | static const unsigned int ADDR_SOFT_CAP = 1000; | ||||
// The network magic to use. | |||||
extern CMessageHeader::MessageMagic netMagic; | |||||
enum class PeerMessagingState { | enum class PeerMessagingState { | ||||
AwaitingMessages, | AwaitingMessages, | ||||
Finished, | Finished, | ||||
}; | }; | ||||
class CSeederNode { | class CSeederNode { | ||||
private: | private: | ||||
SOCKET sock; | SOCKET sock; | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |