revert changes to calcScore

This commit is contained in:
Evan Duffield 2015-02-08 21:57:50 -07:00
parent 8d913937f4
commit a4c8341b98

View File

@ -557,11 +557,8 @@ uint256 CMasterNode::CalculateScore(int mod, int64_t nBlockHeight)
if(!GetBlockHash(hash, nBlockHeight)) return 0;
std::string strHash = hash.ToString();
std::string strAux = hash.ToString() + aux.ToString();
uint256 hash2 = Hash(BEGIN(strHash), END(strHash));
uint256 hash3 = Hash(BEGIN(strAux), END(strAux));
uint256 hash2 = Hash(BEGIN(hash), END(hash));
uint256 hash3 = Hash(BEGIN(hash), END(aux));
uint256 r = (hash3 > hash2 ? hash3 - hash2 : hash2 - hash3);