File tree Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -2371,24 +2371,6 @@ void CConnman::GetNodeStats(std::vector<CNodeStats>& vstats)
2371
2371
}
2372
2372
}
2373
2373
2374
- bool CConnman::DisconnectAddress (const CNetAddr& netAddr)
2375
- {
2376
- if (CNode* pnode = FindNode (netAddr)) {
2377
- pnode->fDisconnect = true ;
2378
- return true ;
2379
- }
2380
- return false ;
2381
- }
2382
-
2383
- bool CConnman::DisconnectSubnet (const CSubNet& subNet)
2384
- {
2385
- if (CNode* pnode = FindNode (subNet)) {
2386
- pnode->fDisconnect = true ;
2387
- return true ;
2388
- }
2389
- return false ;
2390
- }
2391
-
2392
2374
bool CConnman::DisconnectNode (const std::string& strNode)
2393
2375
{
2394
2376
if (CNode* pnode = FindNode (strNode)) {
@@ -2409,16 +2391,6 @@ bool CConnman::DisconnectNode(NodeId id)
2409
2391
return false ;
2410
2392
}
2411
2393
2412
- void CConnman::RelayTransaction (const CTransaction& tx)
2413
- {
2414
- CInv inv (MSG_TX, tx.GetHash ());
2415
- LOCK (cs_vNodes);
2416
- BOOST_FOREACH (CNode* pnode, vNodes)
2417
- {
2418
- pnode->PushInventory (inv);
2419
- }
2420
- }
2421
-
2422
2394
void CConnman::RecordBytesRecv (uint64_t bytes)
2423
2395
{
2424
2396
LOCK (cs_totalBytesRecv);
Original file line number Diff line number Diff line change @@ -243,8 +243,6 @@ class CConnman
243
243
post ();
244
244
};
245
245
246
- void RelayTransaction (const CTransaction& tx);
247
-
248
246
// Addrman functions
249
247
size_t GetAddressCount () const ;
250
248
void SetServices (const CService &addr, ServiceFlags nServices);
@@ -286,10 +284,8 @@ class CConnman
286
284
287
285
size_t GetNodeCount (NumConnections num);
288
286
void GetNodeStats (std::vector<CNodeStats>& vstats);
289
- bool DisconnectAddress (const CNetAddr& addr);
290
287
bool DisconnectNode (const std::string& node);
291
288
bool DisconnectNode (NodeId id);
292
- bool DisconnectSubnet (const CSubNet& subnet);
293
289
294
290
unsigned int GetSendBufferSize () const ;
295
291
You can’t perform that action at this time.
0 commit comments