Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/bitcoin.h
#ifndef BITCOIN_SEEDER_BITCOIN_H | #ifndef BITCOIN_SEEDER_BITCOIN_H | ||||
#define BITCOIN_SEEDER_BITCOIN_H | #define BITCOIN_SEEDER_BITCOIN_H | ||||
#include "messageheader.h" | |||||
#include "protocol.h" | #include "protocol.h" | ||||
#include <string> | #include <string> | ||||
#include <vector> | #include <vector> | ||||
/** | /** | ||||
* The seeder do not use the Params facility. | * The seeder do not use the Params facility. | ||||
* | * | ||||
* While this is sorted out, we need a replacement. | * While this is sorted out, we need a replacement. | ||||
*/ | */ | ||||
extern bool fTestNet; | extern bool fTestNet; | ||||
static inline unsigned short GetDefaultPort(const bool testnet = fTestNet) { | static inline unsigned short GetDefaultPort(const bool testnet = fTestNet) { | ||||
return testnet ? 18333 : 8333; | return testnet ? 18333 : 8333; | ||||
} | } | ||||
// The network magic to use. | // The network magic to use. | ||||
extern CSeederMessageHeader::MessageMagic netMagic; | extern CMessageHeader::MessageMagic netMagic; | ||||
bool TestNode(const CService &cip, int &ban, int &client, std::string &clientSV, | bool TestNode(const CService &cip, int &ban, int &client, std::string &clientSV, | ||||
int &blocks, std::vector<CAddress> *vAddr); | int &blocks, std::vector<CAddress> *vAddr); | ||||
#endif | #endif |