Refactor FeeVote into IFeeVote abstract interface

This commit is contained in:
Vinnie Falco
2013-05-31 07:13:21 -07:00
parent a38795b3c5
commit fd6172273c
12 changed files with 249 additions and 117 deletions

View File

@@ -0,0 +1,21 @@
#ifndef RIPPLE_IFEATURES_H
#define RIPPLE_IFEATURES_H
/** Feature table interface.
The feature table stores the list of enabled and potential features.
Individuals features are voted on by validators during the consensus
process.
*/
class IFeatureTable
{
public:
static IFeatureTable* New (uint32 majorityTime, int majorityFraction);
virtual ~IFeatureTable () { }
virtual void doValidation (Ledger::ref lastClosedLedger, STObject& baseValidation) = 0;
virtual void doVoting (Ledger::ref lastClosedLedger, SHAMap::ref initialPosition) = 0;
};
#endif