Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.h
Show First 20 Lines • Show All 245 Lines • ▼ Show 20 Lines | public: | ||||
void FinalizeNode(const Config &config, const CNode &node, | void FinalizeNode(const Config &config, const CNode &node, | ||||
bool &update_connection_time) override; | bool &update_connection_time) override; | ||||
private: | private: | ||||
void runEventLoop(); | void runEventLoop(); | ||||
void clearTimedoutRequests(); | void clearTimedoutRequests(); | ||||
std::vector<CInv> getInvsForNextPoll(bool forPoll = true); | std::vector<CInv> getInvsForNextPoll(bool forPoll = true); | ||||
/** | |||||
* Build and return the challenge whose signature is included in the | |||||
* AVAHELLO message that we send to a peer. | |||||
*/ | |||||
uint256 buildLocalSighash(CNode *pfrom) const; | |||||
bool isWorthPolling(const CBlockIndex *pindex) const | bool isWorthPolling(const CBlockIndex *pindex) const | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
bool isWorthPolling(const ProofRef &proof) const | bool isWorthPolling(const ProofRef &proof) const | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_peerManager); | EXCLUSIVE_LOCKS_REQUIRED(cs_peerManager); | ||||
friend struct ::avalanche::AvalancheTest; | friend struct ::avalanche::AvalancheTest; | ||||
}; | }; | ||||
} // namespace avalanche | } // namespace avalanche | ||||
#endif // BITCOIN_AVALANCHE_PROCESSOR_H | #endif // BITCOIN_AVALANCHE_PROCESSOR_H |