![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
#include <net_processing.h>
Public Member Functions | |
| PeerLogicValidation (CConnman *connman) | |
| ~PeerLogicValidation ()=default | |
| void | BlockConnected (const std::shared_ptr< const CBlock > &pblock, const CBlockIndex *pindex) override |
| Notifies listeners of a block being connected. More... | |
| void | UpdatedBlockTip (const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override |
| Notifies listeners when the block chain tip advances. More... | |
| void | BlockChecked (const CBlock &block, const CValidationState &state) override |
| 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 EXCLUSIVE_LOCKS_REQUIRED(pto -> cs_sendProcessing) |
| Send queued protocol messages to be sent to a give node. More... | |
Public Member Functions inherited from CValidationInterface | |
| virtual | ~CValidationInterface ()=default |
| virtual void | AcceptedBlockHeader (const CBlockIndex *pindexNew) |
Private Attributes | |
| CConnman * | connman |
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 | TransactionRemovedFromMempool (const CTransactionRef &ptx, MemPoolRemovalReason reason) |
| Notifies listeners of a transaction leaving mempool. More... | |
| virtual void | BlockDisconnected (const std::shared_ptr< const CBlock > &block, const uint256 &blockHash, int nBlockHeight, int64_t blockTime) |
| 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 | ResendWalletTransactions (CConnman *connman) |
| Tells listeners to broadcast their data. More... | |
| friend | void ::RegisterSharedValidationInterface (std::shared_ptr< CValidationInterface >) |
| friend | void ::UnregisterValidationInterface (CValidationInterface *) |
| friend | void ::UnregisterAllValidationInterfaces () |
| virtual void | NotifyMasternodeListChanged (bool undo, const CDeterministicMNList &oldMNList, const CDeterministicMNListDiff &diff) |
| Notifies listeners of updated deterministic masternode list. More... | |
Definition at line 35 of file net_processing.h.
|
explicit |
Definition at line 704 of file net_processing.cpp.
|
default |
|
overridevirtual |
Reimplemented from CValidationInterface.
Definition at line 762 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.
Called on a background thread.
Reimplemented from CValidationInterface.
Definition at line 711 of file net_processing.cpp.
|
overridevirtual |
Implements NetEventsInterface.
Definition at line 471 of file net_processing.cpp.
|
overridevirtual |
Implements NetEventsInterface.
Definition at line 459 of file net_processing.cpp.
|
overridevirtual |
Process protocol messages received from a given node.
Implements NetEventsInterface.
Definition at line 2255 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 2375 of file net_processing.cpp.
|
overridevirtual |
Notifies listeners when the block chain tip advances.
When multiple blocks are connected at once, UpdatedBlockTip will be called on the final tip but may not be called on every intermediate tip. If the latter behavior is desired, subscribe to BlockConnected() instead.
Called on a background thread.
Reimplemented from CValidationInterface.
Definition at line 742 of file net_processing.cpp.
|
private |
Definition at line 37 of file net_processing.h.