Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/bitcoin.h
Show All 10 Lines | |||||
#include <string> | #include <string> | ||||
#include <vector> | #include <vector> | ||||
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 | |||||
// message. | |||||
static const unsigned int ADDR_SOFT_CAP = 1000; | |||||
// The network magic to use. | // The network magic to use. | ||||
extern CMessageHeader::MessageMagic netMagic; | extern CMessageHeader::MessageMagic netMagic; | ||||
enum class PeerMessagingState { | enum class PeerMessagingState { | ||||
AwaitingMessages, | AwaitingMessages, | ||||
Finished, | Finished, | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |