Convenience functions and avoid a copy.#

This commit is contained in:
JoelKatz
2011-12-13 20:13:00 -08:00
parent b829f2ca16
commit d5bc38f93e
2 changed files with 21 additions and 7 deletions

View File

@@ -34,7 +34,12 @@ public:
bool checkFixHash();
void setHash();
const std::vector<unsigned char>& getData() { return mData; }
bool store() const;
static bool store(HashedObjectType type, uint32 index, const std::vector<unsigned char>& data,
const uint256& hash);
static HashedObject::pointer retrieve(const uint256& hash);
};