diff options
author | Matt Corallo <git@bluematt.me> | 2017-01-24 16:49:15 -0500 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-01-24 17:01:43 -0500 |
commit | 5be01906e59d484ec997b594e39bab528845bb78 (patch) | |
tree | 6173b2d27f4df59c88ed01d22396b2f1d74c286f /src/net.cpp | |
parent | b68f898efa095dce03533be8ac015c1faef23053 (diff) |
Delete some unused (and broken) functions in CConnman
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/net.cpp b/src/net.cpp index 1019d59544..4e296a3114 100644 --- a/src/net.cpp +++ b/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); |