Skip to content

Commit

Permalink
apply patch
Browse files Browse the repository at this point in the history
  • Loading branch information
oxarbitrage committed Apr 11, 2024
1 parent 9bcf7ee commit 4429b30
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 126 deletions.
122 changes: 0 additions & 122 deletions depend/zcash/Cargo.toml

This file was deleted.

6 changes: 3 additions & 3 deletions depend/zcash/src/zcash/cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "zcash/cache.h"
#include "util/system.h"
// #include "util/system.h"

namespace libzcash
{
std::unique_ptr<BundleValidityCache> NewBundleValidityCache(rust::Str kind, size_t nMaxCacheSize)
{
auto cache = std::unique_ptr<BundleValidityCache>(new BundleValidityCache());
size_t nElems = cache->setup_bytes(nMaxCacheSize);
LogPrintf("Using %zu MiB out of %zu requested for %s bundle cache, able to store %zu elements\n",
(nElems * sizeof(BundleCacheEntry)) >> 20, nMaxCacheSize >> 20, kind, nElems);
// LogPrintf("Using %zu MiB out of %zu requested for %s bundle cache, able to store %zu elements\n",
// (nElems * sizeof(BundleCacheEntry)) >> 20, nMaxCacheSize >> 20, kind, nElems);
return cache;
}
} // namespace libzcash
Expand Down
2 changes: 1 addition & 1 deletion depend/zcash/src/zcash/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class BundleCacheHasher
{
static_assert(hash_select < 8, "BundleCacheHasher only has 8 hashes available.");
uint32_t u;
std::memcpy(&u, key.begin() + 4 * hash_select, 4);
std::memcpy(&u, key.data() + 4 * hash_select, 4);
return u;
}
};
Expand Down

0 comments on commit 4429b30

Please sign in to comment.