Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.h
Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | public: | ||||
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 std::shared_ptr<Proof> &proof, | void addProofToReconcile(const std::shared_ptr<Proof> &proof, | ||||
bool isAccepted); | bool isAccepted); | ||||
bool isAccepted(const CBlockIndex *pindex) const; | bool isAccepted(const CBlockIndex *pindex) const; | ||||
bool isAccepted(const std::shared_ptr<Proof> &proof) const; | |||||
int getConfidence(const CBlockIndex *pindex) const; | int getConfidence(const CBlockIndex *pindex) const; | ||||
int getConfidence(const std::shared_ptr<Proof> &proof) const; | |||||
// TODO: Refactor the API to remove the dependency on avalanche/protocol.h | // TODO: Refactor the API to remove the dependency on avalanche/protocol.h | ||||
void sendResponse(CNode *pfrom, Response response) const; | void sendResponse(CNode *pfrom, Response response) const; | ||||
bool registerVotes(NodeId nodeid, const Response &response, | bool registerVotes(NodeId nodeid, const Response &response, | ||||
std::vector<BlockUpdate> &blockUpdates, int &banscore, | std::vector<BlockUpdate> &blockUpdates, int &banscore, | ||||
std::string &error); | std::string &error); | ||||
template <typename Callable> auto withPeerManager(Callable &&func) const { | template <typename Callable> auto withPeerManager(Callable &&func) const { | ||||
Show All 35 Lines |