Move explicit instantiations for `BundleValidityCache` into `zcash/cache.cpp`
Also cleans them up a bit using the typedef.
This commit is contained in:
parent
d5a271c7a4
commit
ebb37770a8
|
@ -16,3 +16,7 @@ std::unique_ptr<BundleValidityCache> NewBundleValidityCache(rust::Str kind, size
|
||||||
return cache;
|
return cache;
|
||||||
}
|
}
|
||||||
} // namespace libzcash
|
} // namespace libzcash
|
||||||
|
|
||||||
|
// Explicit instantiations for libzcash::BundleValidityCache
|
||||||
|
template void libzcash::BundleValidityCache::insert(libzcash::BundleCacheEntry e);
|
||||||
|
template bool libzcash::BundleValidityCache::contains(const libzcash::BundleCacheEntry& e, const bool erase) const;
|
||||||
|
|
|
@ -41,7 +41,4 @@ typedef CuckooCache::cache<BundleCacheEntry, BundleCacheHasher> BundleValidityCa
|
||||||
std::unique_ptr<BundleValidityCache> NewBundleValidityCache(rust::Str kind, size_t nMaxCacheSize);
|
std::unique_ptr<BundleValidityCache> NewBundleValidityCache(rust::Str kind, size_t nMaxCacheSize);
|
||||||
} // namespace libzcash
|
} // namespace libzcash
|
||||||
|
|
||||||
template void CuckooCache::cache<libzcash::BundleCacheEntry, libzcash::BundleCacheHasher>::insert(libzcash::BundleCacheEntry e);
|
|
||||||
template bool CuckooCache::cache<libzcash::BundleCacheEntry, libzcash::BundleCacheHasher>::contains(const libzcash::BundleCacheEntry& e, const bool erase) const;
|
|
||||||
|
|
||||||
#endif // ZCASH_ZCASH_CACHE_H
|
#endif // ZCASH_ZCASH_CACHE_H
|
||||||
|
|
Loading…
Reference in New Issue