Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.h
Show All 37 Lines | |||||
struct CNodeStateStats { | struct CNodeStateStats { | ||||
int m_misbehavior_score = 0; | int m_misbehavior_score = 0; | ||||
int nSyncHeight = -1; | int nSyncHeight = -1; | ||||
int nCommonHeight = -1; | int nCommonHeight = -1; | ||||
int m_starting_height = -1; | int m_starting_height = -1; | ||||
std::chrono::microseconds m_ping_wait; | std::chrono::microseconds m_ping_wait; | ||||
std::vector<int> vHeightInFlight; | std::vector<int> vHeightInFlight; | ||||
uint64_t m_addr_processed = 0; | |||||
uint64_t m_addr_rate_limited = 0; | |||||
bool m_addr_relay_enabled{false}; | bool m_addr_relay_enabled{false}; | ||||
}; | }; | ||||
class PeerManager : public CValidationInterface, public NetEventsInterface { | class PeerManager : public CValidationInterface, public NetEventsInterface { | ||||
public: | public: | ||||
static std::unique_ptr<PeerManager> | static std::unique_ptr<PeerManager> | ||||
make(const CChainParams &chainparams, CConnman &connman, BanMan *banman, | make(const CChainParams &chainparams, CConnman &connman, BanMan *banman, | ||||
CScheduler &scheduler, ChainstateManager &chainman, CTxMemPool &pool, | CScheduler &scheduler, ChainstateManager &chainman, CTxMemPool &pool, | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |