More feature table work.

This commit is contained in:
JoelKatz
2012-12-02 20:11:34 -08:00
parent 6b77a141d8
commit 331514570c
2 changed files with 51 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ protected:
};
typedef boost::unordered_map<uint256, FeatureState> featureMap_t;
typedef std::pair<uint256, FeatureState> featureIt_t;
typedef std::pair<const uint256, FeatureState> featureIt_t;
typedef boost::unordered_set<uint256> featureList_t;
boost::mutex mMutex;
@@ -64,6 +64,8 @@ public:
bool isFeatureEnabled(const uint256& feature);
void setEnabledFeatures(const std::vector<uint256>& features);
featureList_t getVetoedFeatures();
featureList_t getEnabledFeatures();
featureList_t getFeaturesToEnable(uint32 closeTime); // gets features we would vote to enable