mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-29 06:55:49 +00:00
.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user