Fix build

This commit is contained in:
Sebastian Messmer 2017-09-09 14:44:01 +01:00
parent 51e9ac39d2
commit fe1383b4ff
2 changed files with 5 additions and 2 deletions

View File

@ -69,6 +69,9 @@ private:
std::shared_ptr<EncryptionKeyData> _key;
};
template<size_t KeySize> constexpr size_t EncryptionKey<KeySize>::BINARY_LENGTH;
template<size_t KeySize> constexpr size_t EncryptionKey<KeySize>::STRING_LENGTH;
template<size_t KeySize>
inline EncryptionKey<KeySize>::EncryptionKeyData::EncryptionKeyData(const FixedSizeData<KeySize>& keyData)
: key(keyData)

View File

@ -58,7 +58,7 @@ set<Key> _getBlockstoreUnaccountedBlocks(const CryConfig &config) {
i = 0;
cout << "\nRemove blocks that have a parent" << endl;
//Remove root block from unaccountedBlocks
unaccountedBlocks.erase(Key::FrComString(config.RootBlob()));
unaccountedBlocks.erase(Key::FromString(config.RootBlob()));
//Remove all blocks that have a parent node from unaccountedBlocks
for (auto file = directory_iterator("/home/heinzi/basedir"); file != directory_iterator(); ++file) {
cout << "\r" << (++i) << "/" << numBlocks << flush;
@ -148,4 +148,4 @@ int main() {
}
}
cout << "\n" << numLeaves << " leaves and " << numInner << " inner nodes" << endl;
}
}