mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Delete some unused (and broken) functions in CConnman
This commit is contained in:
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)
|
||||
{
|
||||
if (CNode* pnode = FindNode(strNode)) {
|
||||
@@ -2409,16 +2391,6 @@ bool CConnman::DisconnectNode(NodeId id)
|
||||
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)
|
||||
{
|
||||
LOCK(cs_totalBytesRecv);
|
||||
|
||||
Reference in New Issue
Block a user