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 <chain.h> | #include <chain.h> | ||||
#include <chainparamsconstants.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 30 Lines | private: | ||||
void AbortMessage(); | void AbortMessage(); | ||||
void EndMessage(); | void EndMessage(); | ||||
void Send(); | void Send(); | ||||
void PushVersion(); | void PushVersion(); | ||||
void GotVersion(); | void GotChainParams(); | ||||
void RequestChainParams(); | |||||
bool ProcessMessages(); | bool ProcessMessages(); | ||||
protected: | protected: | ||||
bool ProcessMessage(std::string strCommand, CDataStream &recv); | bool ProcessMessage(std::string strCommand, CDataStream &recv); | ||||
public: | public: | ||||
CSeederNode(const CService &ip, std::vector<CAddress> *vAddrIn); | CSeederNode(const CService &ip, std::vector<CAddress> *vAddrIn); | ||||
Show All 16 Lines |