#ifndef __VALIDATION_COLLECTION__ #define __VALIDATION_COLLECTION__ #include #include #include "uint256.h" #include "types.h" #include "SerializedValidation.h" typedef boost::unordered_map ValidationSet; class ValidationCollection { protected: boost::mutex mValidationLock; boost::unordered_map mValidations; boost::unordered_map mCurrentValidations; public: ValidationCollection() { ; } bool addValidation(SerializedValidation::pointer); ValidationSet getValidations(const uint256& ledger); void getValidationCount(const uint256& ledger, bool currentOnly, int& trusted, int& untrusted); boost::unordered_map getCurrentValidations(); }; #endif