Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.h
Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | class Processor final : public NetEventsInterface { | ||||
const uint32_t staleVoteThreshold; | const uint32_t staleVoteThreshold; | ||||
const uint32_t staleVoteFactor; | const uint32_t staleVoteFactor; | ||||
/** Registered interfaces::Chain::Notifications handler. */ | /** Registered interfaces::Chain::Notifications handler. */ | ||||
class NotificationsHandler; | class NotificationsHandler; | ||||
std::unique_ptr<interfaces::Handler> chainNotificationsHandler; | std::unique_ptr<interfaces::Handler> chainNotificationsHandler; | ||||
Processor(const ArgsManager &argsman, interfaces::Chain &chain, | Processor(const ArgsManager &argsman, interfaces::Chain &chain, | ||||
CConnman *connmanIn, std::unique_ptr<PeerData> peerDataIn, | CConnman *connmanIn, CScheduler &scheduler, | ||||
CKey sessionKeyIn, uint32_t minQuorumTotalScoreIn, | std::unique_ptr<PeerData> peerDataIn, CKey sessionKeyIn, | ||||
uint32_t minQuorumTotalScoreIn, | |||||
double minQuorumConnectedScoreRatioIn, | double minQuorumConnectedScoreRatioIn, | ||||
int64_t minAvaproofsNodeCountIn, uint32_t staleVoteThresholdIn, | int64_t minAvaproofsNodeCountIn, uint32_t staleVoteThresholdIn, | ||||
uint32_t staleVoteFactorIn); | uint32_t staleVoteFactorIn); | ||||
public: | public: | ||||
~Processor(); | ~Processor(); | ||||
static std::unique_ptr<Processor> MakeProcessor(const ArgsManager &argsman, | static std::unique_ptr<Processor> MakeProcessor(const ArgsManager &argsman, | ||||
interfaces::Chain &chain, | interfaces::Chain &chain, | ||||
CConnman *connman, | CConnman *connman, | ||||
CScheduler &scheduler, | |||||
bilingual_str &error); | bilingual_str &error); | ||||
void setQueryTimeoutDuration(std::chrono::milliseconds d) { | void setQueryTimeoutDuration(std::chrono::milliseconds d) { | ||||
queryTimeoutDuration = d; | queryTimeoutDuration = d; | ||||
} | } | ||||
bool addBlockToReconcile(const CBlockIndex *pindex); | bool addBlockToReconcile(const CBlockIndex *pindex); | ||||
void addProofToReconcile(const ProofRef &proof); | void addProofToReconcile(const ProofRef &proof); | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |