Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.h
| Show First 20 Lines • Show All 287 Lines • ▼ Show 20 Lines | public: | ||||
| */ | */ | ||||
| bool reconcileOrFinalize(const ProofRef &proof) | bool reconcileOrFinalize(const ProofRef &proof) | ||||
| EXCLUSIVE_LOCKS_REQUIRED(!cs_peerManager, !cs_finalizedItems); | EXCLUSIVE_LOCKS_REQUIRED(!cs_peerManager, !cs_finalizedItems); | ||||
| bool isAccepted(const AnyVoteItem &item) const; | bool isAccepted(const AnyVoteItem &item) const; | ||||
| int getConfidence(const AnyVoteItem &item) const; | int getConfidence(const AnyVoteItem &item) const; | ||||
| bool isRecentlyFinalized(const uint256 &itemId) const | bool isRecentlyFinalized(const uint256 &itemId) const | ||||
| EXCLUSIVE_LOCKS_REQUIRED(!cs_finalizedItems); | EXCLUSIVE_LOCKS_REQUIRED(!cs_finalizedItems); | ||||
| void setRecentlyFinalized(const uint256 &itemId) | |||||
| EXCLUSIVE_LOCKS_REQUIRED(!cs_finalizedItems); | |||||
| void clearFinalizedItems() EXCLUSIVE_LOCKS_REQUIRED(!cs_finalizedItems); | void clearFinalizedItems() EXCLUSIVE_LOCKS_REQUIRED(!cs_finalizedItems); | ||||
| // 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<VoteItemUpdate> &updates, int &banscore, | std::vector<VoteItemUpdate> &updates, int &banscore, | ||||
| std::string &error) | std::string &error) | ||||
| EXCLUSIVE_LOCKS_REQUIRED(!cs_peerManager, !cs_finalizedItems, | EXCLUSIVE_LOCKS_REQUIRED(!cs_peerManager, !cs_finalizedItems, | ||||
| ▲ Show 20 Lines • Show All 195 Lines • Show Last 20 Lines | |||||