![]() |
BSHA3
0.17.99
P2P Blockchain, based on Bitcoin
|
#include <net_processing.h>
#include <addrman.h>
#include <arith_uint256.h>
#include <blockencodings.h>
#include <chainparams.h>
#include <consensus/validation.h>
#include <hash.h>
#include <validation.h>
#include <merkleblock.h>
#include <netmessagemaker.h>
#include <netbase.h>
#include <policy/fees.h>
#include <policy/policy.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <random.h>
#include <reverse_iterator.h>
#include <scheduler.h>
#include <tinyformat.h>
#include <txmempool.h>
#include <ui_interface.h>
#include <util.h>
#include <utilmoneystr.h>
#include <utilstrencodings.h>
#include <memory>
Go to the source code of this file.
Classes | |
struct | COrphanTx |
class | CNetProcessingCleanup |
Functions | |
std::map< uint256, COrphanTx > mapOrphanTransactions | GUARDED_BY (g_cs_orphans) |
void | EraseOrphansFor (NodeId peer) |
void | Misbehaving (NodeId nodeid, int howmuch, const std::string &message="") EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
Increase a node's misbehavior score. More... | |
void | UpdateLastBlockAnnounceTime (NodeId node, int64_t time_in_seconds) |
bool | GetNodeStateStats (NodeId nodeid, CNodeStateStats &stats) |
Get statistics from node state. More... | |
bool | AddOrphanTx (const CTransactionRef &tx, NodeId peer) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans) |
unsigned int | LimitOrphanTxSize (unsigned int nMaxOrphans) |
Variables | |
CCriticalSection | g_cs_orphans |
class CNetProcessingCleanup | instance_of_cnetprocessingcleanup |
bool AddOrphanTx | ( | const CTransactionRef & | tx, |
NodeId | peer | ||
) |
Definition at line 689 of file net_processing.cpp.
void EraseOrphansFor | ( | NodeId | peer | ) |
bool GetNodeStateStats | ( | NodeId | nodeid, |
CNodeStateStats & | stats | ||
) |
Get statistics from node state.
Definition at line 658 of file net_processing.cpp.
std::map<uint256, COrphanTx> mapOrphanTransactions GUARDED_BY | ( | g_cs_orphans | ) |
unsigned int LimitOrphanTxSize | ( | unsigned int | nMaxOrphans | ) |
void Misbehaving | ( | NodeId | nodeid, |
int | howmuch, | ||
const std::string & | message = "" |
||
) |
Increase a node's misbehavior score.
Mark a misbehaving peer to be banned depending upon the value of -banscore
.
Definition at line 798 of file net_processing.cpp.
void UpdateLastBlockAnnounceTime | ( | NodeId | node, |
int64_t | time_in_seconds | ||
) |
Definition at line 597 of file net_processing.cpp.
CCriticalSection g_cs_orphans |
Definition at line 73 of file net_processing.cpp.
class CNetProcessingCleanup instance_of_cnetprocessingcleanup |