Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.cpp
Show First 20 Lines • Show All 395 Lines • ▼ Show 20 Lines | for (const std::pair<const CBlockIndex *const, VoteRecord> &p : | ||||
} | } | ||||
} | } | ||||
return invs; | return invs; | ||||
} | } | ||||
NodeId Processor::getSuitableNodeToQuery() { | NodeId Processor::getSuitableNodeToQuery() { | ||||
LOCK(cs_peerManager); | LOCK(cs_peerManager); | ||||
return peerManager->getSuitableNodeToQuery(); | return peerManager->selectNode(); | ||||
} | } | ||||
void Processor::clearTimedoutRequests() { | void Processor::clearTimedoutRequests() { | ||||
auto now = std::chrono::steady_clock::now(); | auto now = std::chrono::steady_clock::now(); | ||||
std::map<CInv, uint8_t> timedout_items{}; | std::map<CInv, uint8_t> timedout_items{}; | ||||
{ | { | ||||
// Clear expired requests. | // Clear expired requests. | ||||
▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines |