Fix the disconnect between hashes of nodes in transport format and hashes of nodes in internal format.

This commit is contained in:
JoelKatz
2012-06-24 06:01:48 -07:00
parent 340f17e471
commit 08bfd8f1d0
2 changed files with 4 additions and 34 deletions

View File

@@ -27,12 +27,8 @@ public:
uint32 mLedgerIndex;
std::vector<unsigned char> mData;
HashedObject(HashedObjectType type, uint32 index, const std::vector<unsigned char>& data) :
mType(type), mLedgerIndex(index), mData(data) { ; }
bool checkHash() const;
bool checkFixHash();
void setHash();
HashedObject(HashedObjectType type, uint32 index, const std::vector<unsigned char>& data, const uint256& hash) :
mType(type), mHash(hash), mLedgerIndex(index), mData(data) { ; }
const std::vector<unsigned char>& getData() { return mData; }
const uint256& getHash() { return mHash; }