![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
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... | |
| using SecondsDouble = std::chrono::duration<double, std::chrono::seconds::period> |
Definition at line 78 of file net_processing.h.
|
inline |
Helper to count the seconds in any std::chrono::duration type.
Definition at line 82 of file net_processing.h.
| bool GetNodeStateStats | ( | NodeId | nodeid, |
| CNodeStateStats & | stats | ||
| ) |
Get statistics from node state.
Definition at line 493 of file net_processing.cpp.
| bool IsBanned | ( | NodeId | nodeid | ) |
| 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.
|
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.