This commit is contained in:
jed
2011-10-20 16:34:22 -07:00
parent 650ee74391
commit 0416d64fdc
16 changed files with 176 additions and 101 deletions

View File

@@ -3,19 +3,22 @@
#include "newcoin.pb.h"
#include "uint256.h"
#include "types.h"
class ValidationCollection
{
// from ledger hash to the validation
std::map<uint256, std::vector<newcoin::Validation> > mValidations;
std::map<uint256, std::vector<newcoin::Validation> > mIgnoredValidations;
std::map<uint64, std::vector<newcoin::Validation> > mMapIndexToValid;
std::map<uint32, std::vector<newcoin::Validation> > mMapIndexToValid;
bool hasValidation(uint256& ledgerHash,uint160& hanko);
public:
ValidationCollection();
void addValidation(newcoin::Validation& valid);
std::vector<newcoin::Validation>* getValidations(uint64 ledgerIndex);
std::vector<newcoin::Validation>* getValidations(uint32 ledgerIndex);
};
#endif