From 15b6fbed0b8876d3271ed9c6e4485c0b0c82882e Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sun, 3 Mar 2013 05:55:14 -0800 Subject: [PATCH] Temporarily back out this hash change. --- src/cpp/ripple/SHAMap.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cpp/ripple/SHAMap.cpp b/src/cpp/ripple/SHAMap.cpp index a918c99ec..3e323b58a 100644 --- a/src/cpp/ripple/SHAMap.cpp +++ b/src/cpp/ripple/SHAMap.cpp @@ -24,10 +24,13 @@ DECLARE_INSTANCE(SHAMapTreeNode); void SHAMapNode::setHash() const { std::size_t h = theApp->getNonceST() + (mDepth * 0x9e3779b9); + mHash = mNodeID.hash_combine(h); +#if 0 const unsigned int *ptr = reinterpret_cast(mNodeID.begin()); for (int i = (mDepth + 3) / 4; i >= 0; --i) boost::hash_combine(h, *ptr++); mHash = h; +#endif } std::size_t hash_value(const SHAMapNode& mn)