#include <WarpCapability.h>
|
| | WarpCapability (std::shared_ptr< p2p::CapabilityHostFace > _host, BlockChain const &_blockChain, u256 const &_networkId, boost::filesystem::path const &_snapshotDownloadPath, std::shared_ptr< SnapshotStorageFace > _snapshotStorage) |
| |
| std::string | name () const override |
| |
| unsigned | version () const override |
| |
| p2p::CapDesc | descriptor () const override |
| |
| unsigned | messageCount () const override |
| |
| std::chrono::milliseconds | backgroundWorkInterval () const override |
| |
| u256 | networkId () const |
| |
| void | onConnect (NodeID const &_peerID, u256 const &_peerCapabilityVersion) override |
| |
| bool | interpretCapabilityPacket (NodeID const &_peerID, unsigned _id, RLP const &) override |
| |
| void | onDisconnect (NodeID const &_peerID) override |
| |
| void | doBackgroundWork () override |
| |
| p2p::CapabilityHostFace & | capabilityHost () |
| |
| void | requestStatus (NodeID const &_peerID, unsigned _hostProtocolVersion, u256 const &_hostNetworkId, u256 const &_chainTotalDifficulty, h256 const &_chainCurrentHash, h256 const &_chainGenesisHash, h256 const &_snapshotBlockHash, u256 const &_snapshotBlockNumber) |
| |
| void | requestBlockHeaders (NodeID const &_peerID, unsigned _startNumber, unsigned _count, unsigned _skip, bool _reverse) |
| |
| void | requestManifest (NodeID const &_peerID) |
| |
| bool | requestData (NodeID const &_peerID, h256 const &_chunkHash) |
| |
| bool | validateStatus (NodeID const &_peerID, h256 const &_genesisHash, std::vector< unsigned > const &_protocolVersions, u256 const &_networkId) |
| | Validates whether peer is able to communicate with the host, disables peer if not. More...
|
| |
| void | disablePeer (NodeID const &_peerID, std::string const &_problem) |
| |
Definition at line 69 of file WarpCapability.h.
◆ WarpCapability()
| dev::eth::WarpCapability::WarpCapability |
( |
std::shared_ptr< p2p::CapabilityHostFace > |
_host, |
|
|
BlockChain const & |
_blockChain, |
|
|
u256 const & |
_networkId, |
|
|
boost::filesystem::path const & |
_snapshotDownloadPath, |
|
|
std::shared_ptr< SnapshotStorageFace > |
_snapshotStorage |
|
) |
| |
◆ backgroundWorkInterval()
| std::chrono::milliseconds dev::eth::WarpCapability::backgroundWorkInterval |
( |
| ) |
const |
|
override |
◆ capabilityHost()
| p2p::CapabilityHostFace& dev::eth::WarpCapability::capabilityHost |
( |
| ) |
|
|
inline |
◆ descriptor()
| p2p::CapDesc dev::eth::WarpCapability::descriptor |
( |
| ) |
const |
|
inlineoverride |
◆ disablePeer()
| void dev::eth::WarpCapability::disablePeer |
( |
NodeID const & |
_peerID, |
|
|
std::string const & |
_problem |
|
) |
| |
◆ doBackgroundWork()
| void dev::eth::WarpCapability::doBackgroundWork |
( |
| ) |
|
|
override |
◆ interpretCapabilityPacket()
| bool dev::eth::WarpCapability::interpretCapabilityPacket |
( |
NodeID const & |
_peerID, |
|
|
unsigned |
_id, |
|
|
RLP const & |
_r |
|
) |
| |
|
override |
◆ messageCount()
| unsigned dev::eth::WarpCapability::messageCount |
( |
| ) |
const |
|
inlineoverride |
◆ name()
| std::string dev::eth::WarpCapability::name |
( |
| ) |
const |
|
inlineoverride |
◆ networkId()
| u256 dev::eth::WarpCapability::networkId |
( |
| ) |
const |
|
inline |
◆ onConnect()
| void dev::eth::WarpCapability::onConnect |
( |
NodeID const & |
_peerID, |
|
|
u256 const & |
_peerCapabilityVersion |
|
) |
| |
|
override |
◆ onDisconnect()
| void dev::eth::WarpCapability::onDisconnect |
( |
NodeID const & |
_peerID | ) |
|
|
override |
◆ requestBlockHeaders()
| void dev::eth::WarpCapability::requestBlockHeaders |
( |
NodeID const & |
_peerID, |
|
|
unsigned |
_startNumber, |
|
|
unsigned |
_count, |
|
|
unsigned |
_skip, |
|
|
bool |
_reverse |
|
) |
| |
◆ requestData()
| bool dev::eth::WarpCapability::requestData |
( |
NodeID const & |
_peerID, |
|
|
h256 const & |
_chunkHash |
|
) |
| |
◆ requestManifest()
| void dev::eth::WarpCapability::requestManifest |
( |
NodeID const & |
_peerID | ) |
|
◆ requestStatus()
| void dev::eth::WarpCapability::requestStatus |
( |
NodeID const & |
_peerID, |
|
|
unsigned |
_hostProtocolVersion, |
|
|
u256 const & |
_hostNetworkId, |
|
|
u256 const & |
_chainTotalDifficulty, |
|
|
h256 const & |
_chainCurrentHash, |
|
|
h256 const & |
_chainGenesisHash, |
|
|
h256 const & |
_snapshotBlockHash, |
|
|
u256 const & |
_snapshotBlockNumber |
|
) |
| |
◆ validateStatus()
| bool dev::eth::WarpCapability::validateStatus |
( |
NodeID const & |
_peerID, |
|
|
h256 const & |
_genesisHash, |
|
|
std::vector< unsigned > const & |
_protocolVersions, |
|
|
u256 const & |
_networkId |
|
) |
| |
Validates whether peer is able to communicate with the host, disables peer if not.
Definition at line 538 of file WarpCapability.cpp.
◆ version()
| unsigned dev::eth::WarpCapability::version |
( |
| ) |
const |
|
inlineoverride |
The documentation for this class was generated from the following files: