![]() |
Bitcoin ABC
0.22.12
P2P Digital Currency
|
Go to the source code of this file.
Classes | |
class | PeerLogicValidation |
struct | CNodeStateStats |
Functions | |
bool | GetNodeStateStats (NodeId nodeid, CNodeStateStats &stats) |
Get statistics from node state. More... | |
void | Misbehaving (const NodeId nodeid, const int howmuch, const std::string &message="") |
Increment peer's misbehavior score. More... | |
void | RelayTransaction (const TxId &txid, const CConnman &connman) |
Relay transaction to every node. More... | |
Variables | |
RecursiveMutex | cs_main |
Global state. More... | |
RecursiveMutex | g_cs_orphans |
static const unsigned int | DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100 |
Default for -maxorphantx, maximum number of orphan transactions kept in memory. More... | |
static const unsigned int | DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN = 100 |
Default number of orphan+recently-replaced txn to keep around for block reconstruction. More... | |
static const bool | DEFAULT_PEERBLOCKFILTERS = false |
static const int | DISCOURAGEMENT_THRESHOLD {100} |
Threshold for marking a node to be discouraged, e.g. More... | |
bool GetNodeStateStats | ( | NodeId | nodeid, |
CNodeStateStats & | stats | ||
) |
Get statistics from node state.
Definition at line 1134 of file net_processing.cpp.
void Misbehaving | ( | const NodeId | pnode, |
const int | howmuch, | ||
const std::string & | message | ||
) |
Increment peer's misbehavior score.
If the new value >= DISCOURAGEMENT_THRESHOLD, mark the node to be discouraged, meaning the peer might be disconnected and added to the discouragement filter.
Definition at line 1316 of file net_processing.cpp.
Relay transaction to every node.
Definition at line 1773 of file net_processing.cpp.
RecursiveMutex cs_main |
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 95 of file validation.cpp.
|
static |
Default number of orphan+recently-replaced txn to keep around for block reconstruction.
Definition at line 30 of file net_processing.h.
|
static |
Default for -maxorphantx, maximum number of orphan transactions kept in memory.
Definition at line 25 of file net_processing.h.
|
static |
Definition at line 31 of file net_processing.h.
|
static |
Threshold for marking a node to be discouraged, e.g.
disconnected and added to the discouragement filter.
Definition at line 34 of file net_processing.h.
RecursiveMutex g_cs_orphans |
Definition at line 235 of file net_processing.cpp.