#include <EthereumPeer.h>
|
| | EthereumPeer ()=default |
| |
| | EthereumPeer (std::shared_ptr< p2p::CapabilityHostFace > _host, NodeID const &_peerID, u256 const &) |
| |
| void | setStatus (unsigned _protocolVersion, u256 const &_networkId, u256 const &_totalDifficulty, h256 const &_latestHash, h256 const &_genesisHash) |
| |
| std::string | validate (h256 const &_hostGenesisHash, unsigned _hostProtocolVersion, u256 const &_hostNetworkId) const |
| |
| NodeID | id () const |
| |
| u256 | totalDifficulty () const |
| |
| time_t | lastAsk () const |
| |
| void | setLastAsk (time_t _lastAsk) |
| |
| Asking | asking () const |
| |
| bool | isConversing () const |
| |
| void | setAsking (Asking _asking) |
| |
| h256 | latestHash () const |
| |
| void | setLatestHash (h256 const &_hash) |
| |
| bool | isWaitingForTransactions () const |
| |
| void | setWaitingForTransactions (bool _value) |
| |
| bool | isTransactionKnown (h256 const &_hash) const |
| |
| void | markTransactionAsKnown (h256 const &_hash) |
| |
| bool | isBlockKnown (h256 const &_hash) const |
| |
| void | markBlockAsKnown (h256 const &_hash) |
| |
| void | clearKnownBlocks () |
| |
| unsigned | unknownNewBlocks () const |
| |
| void | incrementUnknownNewBlocks () |
| |
| void | requestStatus (u256 _hostNetworkId, u256 _chainTotalDifficulty, h256 _chainCurrentHash, h256 _chainGenesPeersh) |
| |
| void | requestBlockHeaders (h256 const &_startHash, unsigned _count, unsigned _skip, bool _reverse) |
| | Request hashes for given parent hash. More...
|
| |
| void | requestBlockHeaders (unsigned _startNumber, unsigned _count, unsigned _skip, bool _reverse) |
| |
| void | requestBlockBodies (h256s const &_blocks) |
| | Request specified blocks from peer. More...
|
| |
| void | requestNodeData (h256s const &_hashes) |
| | Request values for specified keys from peer. More...
|
| |
| void | requestReceipts (h256s const &_blocks) |
| | Request receipts for specified blocks from peer. More...
|
| |
Definition at line 31 of file EthereumPeer.h.
◆ EthereumPeer() [1/2]
| dev::eth::EthereumPeer::EthereumPeer |
( |
| ) |
|
|
default |
◆ EthereumPeer() [2/2]
| dev::eth::EthereumPeer::EthereumPeer |
( |
std::shared_ptr< p2p::CapabilityHostFace > |
_host, |
|
|
NodeID const & |
_peerID, |
|
|
u256 const & |
|
|
) |
| |
|
inline |
◆ asking()
| Asking dev::eth::EthereumPeer::asking |
( |
| ) |
const |
|
inline |
◆ clearKnownBlocks()
| void dev::eth::EthereumPeer::clearKnownBlocks |
( |
| ) |
|
|
inline |
◆ id()
| NodeID dev::eth::EthereumPeer::id |
( |
| ) |
const |
|
inline |
◆ incrementUnknownNewBlocks()
| void dev::eth::EthereumPeer::incrementUnknownNewBlocks |
( |
| ) |
|
|
inline |
◆ isBlockKnown()
| bool dev::eth::EthereumPeer::isBlockKnown |
( |
h256 const & |
_hash | ) |
const |
|
inline |
◆ isConversing()
| bool dev::eth::EthereumPeer::isConversing |
( |
| ) |
const |
|
inline |
◆ isTransactionKnown()
| bool dev::eth::EthereumPeer::isTransactionKnown |
( |
h256 const & |
_hash | ) |
const |
|
inline |
◆ isWaitingForTransactions()
| bool dev::eth::EthereumPeer::isWaitingForTransactions |
( |
| ) |
const |
|
inline |
◆ lastAsk()
| time_t dev::eth::EthereumPeer::lastAsk |
( |
| ) |
const |
|
inline |
◆ latestHash()
| h256 dev::eth::EthereumPeer::latestHash |
( |
| ) |
const |
|
inline |
◆ markBlockAsKnown()
| void dev::eth::EthereumPeer::markBlockAsKnown |
( |
h256 const & |
_hash | ) |
|
|
inline |
◆ markTransactionAsKnown()
| void dev::eth::EthereumPeer::markTransactionAsKnown |
( |
h256 const & |
_hash | ) |
|
|
inline |
◆ requestBlockBodies()
| void EthereumPeer::requestBlockBodies |
( |
h256s const & |
_blocks | ) |
|
◆ requestBlockHeaders() [1/2]
| void EthereumPeer::requestBlockHeaders |
( |
h256 const & |
_startHash, |
|
|
unsigned |
_count, |
|
|
unsigned |
_skip, |
|
|
bool |
_reverse |
|
) |
| |
◆ requestBlockHeaders() [2/2]
| void EthereumPeer::requestBlockHeaders |
( |
unsigned |
_startNumber, |
|
|
unsigned |
_count, |
|
|
unsigned |
_skip, |
|
|
bool |
_reverse |
|
) |
| |
◆ requestNodeData()
| void EthereumPeer::requestNodeData |
( |
h256s const & |
_hashes | ) |
|
◆ requestReceipts()
| void EthereumPeer::requestReceipts |
( |
h256s const & |
_blocks | ) |
|
Request receipts for specified blocks from peer.
Definition at line 141 of file EthereumPeer.cpp.
◆ requestStatus()
| void EthereumPeer::requestStatus |
( |
u256 |
_hostNetworkId, |
|
|
u256 |
_chainTotalDifficulty, |
|
|
h256 |
_chainCurrentHash, |
|
|
h256 |
_chainGenesPeersh |
|
) |
| |
◆ setAsking()
| void dev::eth::EthereumPeer::setAsking |
( |
Asking |
_asking | ) |
|
|
inline |
◆ setLastAsk()
| void dev::eth::EthereumPeer::setLastAsk |
( |
time_t |
_lastAsk | ) |
|
|
inline |
◆ setLatestHash()
| void dev::eth::EthereumPeer::setLatestHash |
( |
h256 const & |
_hash | ) |
|
|
inline |
◆ setStatus()
| void EthereumPeer::setStatus |
( |
unsigned |
_protocolVersion, |
|
|
u256 const & |
_networkId, |
|
|
u256 const & |
_totalDifficulty, |
|
|
h256 const & |
_latestHash, |
|
|
h256 const & |
_genesisHash |
|
) |
| |
◆ setWaitingForTransactions()
| void dev::eth::EthereumPeer::setWaitingForTransactions |
( |
bool |
_value | ) |
|
|
inline |
◆ totalDifficulty()
| u256 dev::eth::EthereumPeer::totalDifficulty |
( |
| ) |
const |
|
inline |
◆ unknownNewBlocks()
| unsigned dev::eth::EthereumPeer::unknownNewBlocks |
( |
| ) |
const |
|
inline |
◆ validate()
| std::string EthereumPeer::validate |
( |
h256 const & |
_hostGenesisHash, |
|
|
unsigned |
_hostProtocolVersion, |
|
|
u256 const & |
_hostNetworkId |
|
) |
| const |
The documentation for this class was generated from the following files: