mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
revert changes to calcScore
This commit is contained in:
parent
8d913937f4
commit
a4c8341b98
@ -557,11 +557,8 @@ uint256 CMasterNode::CalculateScore(int mod, int64_t nBlockHeight)
|
|||||||
|
|
||||||
if(!GetBlockHash(hash, nBlockHeight)) return 0;
|
if(!GetBlockHash(hash, nBlockHeight)) return 0;
|
||||||
|
|
||||||
std::string strHash = hash.ToString();
|
uint256 hash2 = Hash(BEGIN(hash), END(hash));
|
||||||
std::string strAux = hash.ToString() + aux.ToString();
|
uint256 hash3 = Hash(BEGIN(hash), END(aux));
|
||||||
|
|
||||||
uint256 hash2 = Hash(BEGIN(strHash), END(strHash));
|
|
||||||
uint256 hash3 = Hash(BEGIN(strAux), END(strAux));
|
|
||||||
|
|
||||||
uint256 r = (hash3 > hash2 ? hash3 - hash2 : hash2 - hash3);
|
uint256 r = (hash3 > hash2 ? hash3 - hash2 : hash2 - hash3);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user