Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.h
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | public: | ||||
const VoteItem getVoteItem() const { return item; } | const VoteItem getVoteItem() const { return item; } | ||||
}; | }; | ||||
using BlockUpdate = VoteItemUpdate<CBlockIndex *>; | using BlockUpdate = VoteItemUpdate<CBlockIndex *>; | ||||
using ProofUpdate = VoteItemUpdate<std::shared_ptr<Proof>>; | using ProofUpdate = VoteItemUpdate<std::shared_ptr<Proof>>; | ||||
using BlockVoteMap = | using BlockVoteMap = | ||||
std::map<const CBlockIndex *, VoteRecord, CBlockIndexWorkComparator>; | std::map<const CBlockIndex *, VoteRecord, CBlockIndexWorkComparator>; | ||||
using ProofVoteMap = std::map<const std::shared_ptr<Proof>, VoteRecord, | using ProofVoteMap = | ||||
ProofSharedPointerComparator>; | std::map<const std::shared_ptr<Proof>, VoteRecord, ProofComparator>; | ||||
struct query_timeout {}; | struct query_timeout {}; | ||||
namespace { | namespace { | ||||
struct AvalancheTest; | struct AvalancheTest; | ||||
} | } | ||||
class Processor { | class Processor { | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |