PIVX Core  5.6.99
P2P Digital Currency
Classes | Typedefs | Functions | Variables
net_processing.h File Reference
#include "net.h"
#include "validationinterface.h"
Include dependency graph for net_processing.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PeerLogicValidation
 
struct  CNodeStateStats
 

Typedefs

using SecondsDouble = std::chrono::duration< double, std::chrono::seconds::period >
 

Functions

bool GetNodeStateStats (NodeId nodeid, CNodeStateStats &stats)
 Get statistics from node state. More...
 
void Misbehaving (NodeId nodeid, int howmuch, const std::string &message="") EXCLUSIVE_LOCKS_REQUIRED(cs_main)
 Increase a node's misbehavior score. More...
 
bool IsBanned (NodeId nodeid)
 
double CountSecondsDouble (SecondsDouble t)
 Helper to count the seconds in any std::chrono::duration type. More...
 

Variables

RecursiveMutex cs_main
 Global state. More...
 

Typedef Documentation

◆ SecondsDouble

using SecondsDouble = std::chrono::duration<double, std::chrono::seconds::period>

Definition at line 78 of file net_processing.h.

Function Documentation

◆ CountSecondsDouble()

double CountSecondsDouble ( SecondsDouble  t)
inline

Helper to count the seconds in any std::chrono::duration type.

Definition at line 82 of file net_processing.h.

◆ GetNodeStateStats()

bool GetNodeStateStats ( NodeId  nodeid,
CNodeStateStats stats 
)

Get statistics from node state.

Definition at line 493 of file net_processing.cpp.

Here is the caller graph for this function:

◆ IsBanned()

bool IsBanned ( NodeId  nodeid)

Definition at line 649 of file net_processing.cpp.

Here is the caller graph for this function:

◆ Misbehaving()

void Misbehaving ( NodeId  nodeid,
int  howmuch,
const std::string &  message = "" 
)

Increase a node's misbehavior score.

Definition at line 628 of file net_processing.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ cs_main

RecursiveMutex cs_main
extern

Global state.

Mutex to guard access to validation specific variables, such as reading or changing the chainstate.

This may also need to be locked when updating the transaction pool, e.g. on AcceptToMemoryPool. See CTxMemPool::cs comment for details.

The transaction pool has a separate lock to allow reading from it and the chainstate at the same time.

Definition at line 80 of file validation.cpp.