Raven Core
3.0.0
P2P Digital Currency
|
#include <net_processing.h>
Public Member Functions | |
PeerLogicValidation (CConnman *connman, CScheduler &scheduler) | |
void | BlockConnected (const std::shared_ptr< const CBlock > &pblock, const CBlockIndex *pindexConnected, const std::vector< CTransactionRef > &vtxConflicted) override |
Notifies listeners of a block being connected. More... | |
void | UpdatedBlockTip (const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override |
Notifies listeners of updated block chain tip. More... | |
void | BlockChecked (const CBlock &block, const CValidationState &state) override |
Notifies listeners of a block validation result. More... | |
void | NewPoWValidBlock (const CBlockIndex *pindex, const std::shared_ptr< const CBlock > &pblock) override |
Notifies listeners that a block which builds directly on our current tip has been received and connected to the headers tree, though not validated yet. More... | |
void | InitializeNode (CNode *pnode) override |
void | FinalizeNode (NodeId nodeid, bool &fUpdateConnectionTime) override |
bool | ProcessMessages (CNode *pfrom, std::atomic< bool > &interrupt) override |
Process protocol messages received from a given node. More... | |
bool | SendMessages (CNode *pto, std::atomic< bool > &interrupt) override |
Send queued protocol messages to be sent to a give node. More... | |
void | ConsiderEviction (CNode *pto, int64_t time_in_seconds) |
void | CheckForStaleTipAndEvictPeers (const Consensus::Params &consensusParams) |
void | EvictExtraOutboundPeers (int64_t time_in_seconds) |
Private Attributes | |
CConnman *const | connman |
int64_t | m_stale_tip_check_time |
Additional Inherited Members | |
Protected Member Functions inherited from CValidationInterface | |
virtual void | TransactionAddedToMempool (const CTransactionRef &ptxn) |
Notifies listeners of a transaction having been added to mempool. More... | |
virtual void | BlockDisconnected (const std::shared_ptr< const CBlock > &block) |
Notifies listeners of a block being disconnected. More... | |
virtual void | SetBestChain (const CBlockLocator &locator) |
Notifies listeners of the new active block chain on-disk. More... | |
virtual void | Inventory (const uint256 &hash) |
Notifies listeners about an inventory item being seen on the network. More... | |
virtual void | ResendWalletTransactions (int64_t nBestBlockTime, CConnman *connman) |
Tells listeners to broadcast their data. More... | |
virtual void | BlockFound (const uint256 &hash) |
virtual void | NewAssetMessage (const CMessage &message) |
friend | void ::RegisterValidationInterface (CValidationInterface *) |
friend | void ::UnregisterValidationInterface (CValidationInterface *) |
friend | void ::UnregisterAllValidationInterfaces () |
Definition at line 39 of file net_processing.h.
|
explicit |
|
overridevirtual |
Notifies listeners of a block validation result.
If the provided CValidationState IsValid, the provided block is guaranteed to be the current best block at the time the callback was generated (not necessarily now)
Reimplemented from CValidationInterface.
Definition at line 909 of file net_processing.cpp.
|
overridevirtual |
Notifies listeners of a block being connected.
Provides a vector of transactions evicted from the mempool as a result.
Reimplemented from CValidationInterface.
Definition at line 798 of file net_processing.cpp.
void PeerLogicValidation::CheckForStaleTipAndEvictPeers | ( | const Consensus::Params & | consensusParams | ) |
void PeerLogicValidation::ConsiderEviction | ( | CNode * | pto, |
int64_t | time_in_seconds | ||
) |
void PeerLogicValidation::EvictExtraOutboundPeers | ( | int64_t | time_in_seconds | ) |
Definition at line 3137 of file net_processing.cpp.
|
overridevirtual |
Implements NetEventsInterface.
Definition at line 573 of file net_processing.cpp.
|
overridevirtual |
Implements NetEventsInterface.
Definition at line 561 of file net_processing.cpp.
|
overridevirtual |
Notifies listeners that a block which builds directly on our current tip has been received and connected to the headers tree, though not validated yet.
Reimplemented from CValidationInterface.
Definition at line 837 of file net_processing.cpp.
|
overridevirtual |
Process protocol messages received from a given node.
Implements NetEventsInterface.
Definition at line 2965 of file net_processing.cpp.
|
overridevirtual |
Send queued protocol messages to be sent to a give node.
[in] | pto | The node which we are sending messages to. |
[in] | interrupt | Interrupt condition for processing threads |
Implements NetEventsInterface.
Definition at line 3231 of file net_processing.cpp.
|
overridevirtual |
Notifies listeners of updated block chain tip.
Reimplemented from CValidationInterface.
Definition at line 878 of file net_processing.cpp.
|
private |
Definition at line 41 of file net_processing.h.
|
private |
Definition at line 70 of file net_processing.h.