Back out the nonce workaround.

This commit is contained in:
JoelKatz
2012-06-01 21:01:23 -07:00
parent 04790d8966
commit 6cdf039c70
2 changed files with 2 additions and 8 deletions

View File

@@ -15,19 +15,17 @@
#include "SHAMap.h"
#include "Application.h"
uint256 hash_SMN::mNonce;
std::size_t hash_SMN::operator() (const SHAMapNode& mn) const
{
return mn.getDepth()
^ *reinterpret_cast<const std::size_t *>(mn.getNodeID().begin())
^ *reinterpret_cast<const std::size_t *>(mNonce.begin());
^ *reinterpret_cast<const std::size_t *>(theApp->getNonce256().begin());
}
std::size_t hash_SMN::operator() (const uint256& u) const
{
return *reinterpret_cast<const std::size_t *>(u.begin())
^ *reinterpret_cast<const std::size_t *>(mNonce.begin());
^ *reinterpret_cast<const std::size_t *>(theApp->getNonce256().begin());
}
SHAMap::SHAMap(uint32 seq) : mSeq(seq), mState(Modifying)