mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
move Misbehaving declaration into the header since we use it outside of net_processing.cpp
Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
parent
67c0459caf
commit
eb33bd1b33
@ -118,8 +118,6 @@ std::map<uint256, COrphanTx> mapOrphanTransactions GUARDED_BY(g_cs_orphans);
|
||||
size_t nMapOrphanTransactionsSize = 0;
|
||||
void EraseOrphansFor(NodeId peer);
|
||||
|
||||
/** Increase a node's misbehavior score. */
|
||||
void Misbehaving(NodeId nodeid, int howmuch, const std::string& message="");
|
||||
|
||||
/** Average delay between local address broadcasts in seconds. */
|
||||
static constexpr unsigned int AVG_LOCAL_ADDRESS_BROADCAST_INTERVAL = 24 * 60 * 60;
|
||||
|
@ -65,6 +65,11 @@ struct CNodeStateStats {
|
||||
bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats);
|
||||
bool IsBanned(NodeId nodeid);
|
||||
|
||||
// Upstream moved this into net_processing.cpp (13417), however since we use Misbehaving in a number of dash specific
|
||||
// files such as mnauth.cpp and governance.cpp it makes sense to keep it in the header
|
||||
/** Increase a node's misbehavior score. */
|
||||
void Misbehaving(NodeId nodeid, int howmuch, const std::string& message="");
|
||||
|
||||
void EraseObjectRequest(NodeId nodeId, const CInv& inv);
|
||||
void RequestObject(NodeId nodeId, const CInv& inv, std::chrono::microseconds current_time, bool fForce=false);
|
||||
size_t GetRequestedObjectCount(NodeId nodeId);
|
||||
|
Loading…
Reference in New Issue
Block a user