mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
Delete some unused (and broken) functions in CConnman
This commit is contained in:
parent
b68f898efa
commit
5be01906e5
2 changed files with 0 additions and 32 deletions
28
src/net.cpp
28
src/net.cpp
|
@ -2371,24 +2371,6 @@ void CConnman::GetNodeStats(std::vector<CNodeStats>& vstats)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CConnman::DisconnectAddress(const CNetAddr& netAddr)
|
|
||||||
{
|
|
||||||
if (CNode* pnode = FindNode(netAddr)) {
|
|
||||||
pnode->fDisconnect = true;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool CConnman::DisconnectSubnet(const CSubNet& subNet)
|
|
||||||
{
|
|
||||||
if (CNode* pnode = FindNode(subNet)) {
|
|
||||||
pnode->fDisconnect = true;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool CConnman::DisconnectNode(const std::string& strNode)
|
bool CConnman::DisconnectNode(const std::string& strNode)
|
||||||
{
|
{
|
||||||
if (CNode* pnode = FindNode(strNode)) {
|
if (CNode* pnode = FindNode(strNode)) {
|
||||||
|
@ -2409,16 +2391,6 @@ bool CConnman::DisconnectNode(NodeId id)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CConnman::RelayTransaction(const CTransaction& tx)
|
|
||||||
{
|
|
||||||
CInv inv(MSG_TX, tx.GetHash());
|
|
||||||
LOCK(cs_vNodes);
|
|
||||||
BOOST_FOREACH(CNode* pnode, vNodes)
|
|
||||||
{
|
|
||||||
pnode->PushInventory(inv);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void CConnman::RecordBytesRecv(uint64_t bytes)
|
void CConnman::RecordBytesRecv(uint64_t bytes)
|
||||||
{
|
{
|
||||||
LOCK(cs_totalBytesRecv);
|
LOCK(cs_totalBytesRecv);
|
||||||
|
|
|
@ -243,8 +243,6 @@ public:
|
||||||
post();
|
post();
|
||||||
};
|
};
|
||||||
|
|
||||||
void RelayTransaction(const CTransaction& tx);
|
|
||||||
|
|
||||||
// Addrman functions
|
// Addrman functions
|
||||||
size_t GetAddressCount() const;
|
size_t GetAddressCount() const;
|
||||||
void SetServices(const CService &addr, ServiceFlags nServices);
|
void SetServices(const CService &addr, ServiceFlags nServices);
|
||||||
|
@ -286,10 +284,8 @@ public:
|
||||||
|
|
||||||
size_t GetNodeCount(NumConnections num);
|
size_t GetNodeCount(NumConnections num);
|
||||||
void GetNodeStats(std::vector<CNodeStats>& vstats);
|
void GetNodeStats(std::vector<CNodeStats>& vstats);
|
||||||
bool DisconnectAddress(const CNetAddr& addr);
|
|
||||||
bool DisconnectNode(const std::string& node);
|
bool DisconnectNode(const std::string& node);
|
||||||
bool DisconnectNode(NodeId id);
|
bool DisconnectNode(NodeId id);
|
||||||
bool DisconnectSubnet(const CSubNet& subnet);
|
|
||||||
|
|
||||||
unsigned int GetSendBufferSize() const;
|
unsigned int GetSendBufferSize() const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue