Make a "getNeededHashes" function to get the hashes we need to fill in a ledger hole.

This commit is contained in:
JoelKatz
2013-01-04 15:21:02 -08:00
parent 8062c8c959
commit bb6b72fea4
2 changed files with 53 additions and 1 deletions

View File

@@ -413,6 +413,7 @@ public:
bool getNodeFat(const SHAMapNode& node, std::vector<SHAMapNode>& nodeIDs,
std::list<std::vector<unsigned char> >& rawNode, bool fatRoot, bool fatLeaves);
bool getRootNode(Serializer& s, SHANodeFormat format);
void getNeededHashes(std::vector<uint256>& hashes, int max);
SMAddNode addRootNode(const uint256& hash, const std::vector<unsigned char>& rootNode, SHANodeFormat format,
SHAMapSyncFilter* filter);
SMAddNode addRootNode(const std::vector<unsigned char>& rootNode, SHANodeFormat format,