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 <chainparams.h> | ||||
#include <protocol.h> | #include <protocol.h> | ||||
#include <streams.h> | #include <streams.h> | ||||
#include <cstdint> | |||||
#include <string> | #include <string> | ||||
#include <vector> | #include <vector> | ||||
static inline unsigned short GetDefaultPort() { | static inline uint16_t 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; | ||||
enum class PeerMessagingState { | enum class PeerMessagingState { | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |