Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/bitcoin.h
// Copyright (c) 2017-2019 The Bitcoin developers | // Copyright (c) 2017-2019 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_SEEDER_BITCOIN_H | #ifndef BITCOIN_SEEDER_BITCOIN_H | ||||
#define BITCOIN_SEEDER_BITCOIN_H | #define BITCOIN_SEEDER_BITCOIN_H | ||||
#include <chainparams.h> | |||||
#include <protocol.h> | #include <protocol.h> | ||||
#include <streams.h> | #include <streams.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. | ||||
Show All 37 Lines | private: | ||||
void GotVersion(); | void GotVersion(); | ||||
bool ProcessMessages(); | bool ProcessMessages(); | ||||
protected: | protected: | ||||
bool ProcessMessage(std::string strCommand, CDataStream &recv); | bool ProcessMessage(std::string strCommand, CDataStream &recv); | ||||
std::unique_ptr<CChainParams> networkParams; | |||||
public: | public: | ||||
CSeederNode(const CService &ip, std::vector<CAddress> *vAddrIn); | CSeederNode(const CService &ip, std::vector<CAddress> *vAddrIn); | ||||
bool Run(); | bool Run(); | ||||
int GetBan() { return ban; } | int GetBan() { return ban; } | ||||
int GetClientVersion() { return nVersion; } | int GetClientVersion() { return nVersion; } | ||||
Show All 10 Lines |