Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.h
Show First 20 Lines • Show All 261 Lines • ▼ Show 20 Lines | class Processor { | ||||
*/ | */ | ||||
bool mustRegisterProof = false; | bool mustRegisterProof = false; | ||||
public: | public: | ||||
Processor(interfaces::Chain &chain, CConnman *connmanIn, | Processor(interfaces::Chain &chain, CConnman *connmanIn, | ||||
NodePeerManager *nodePeerManagerIn); | NodePeerManager *nodePeerManagerIn); | ||||
~Processor(); | ~Processor(); | ||||
static Processor *MakeProcessor(interfaces::Chain &chain, | |||||
CConnman *connmanIn, | |||||
NodePeerManager *nodePeerManagerIn); | |||||
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); | ||||
bool isAccepted(const CBlockIndex *pindex) const; | bool isAccepted(const CBlockIndex *pindex) const; | ||||
int getConfidence(const CBlockIndex *pindex) const; | int getConfidence(const CBlockIndex *pindex) const; | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |