Count a validation for its previous ledger if it's during consensus time.

This commit is contained in:
JoelKatz
2012-09-05 10:05:15 -07:00
parent 7785b89b5d
commit 1dfdf8e9d8
4 changed files with 22 additions and 9 deletions

View File

@@ -8,6 +8,7 @@ class SerializedValidation : public STObject
{
protected:
STVariableLength mSignature;
uint256 mPreviousHash;
bool mTrusted;
void setNode();
@@ -40,6 +41,11 @@ public:
void addSignature(Serializer&) const;
std::vector<unsigned char> getSigned() const;
std::vector<unsigned char> getSignature() const;
// The validation this replaced
const uint256& getPreviousHash() { return mPreviousHash; }
bool isPreviousHash(const uint256& h) { return mPreviousHash == h; }
void setPreviousHash(const uint256& h) { mPreviousHash = h; }
};
#endif