Skip to content

Commit

Permalink
explicitly grab each piece of data from memory for hashing in CMaster…
Browse files Browse the repository at this point in the history
…node::CalculateScore
  • Loading branch information
UdjinM6 committed Mar 23, 2015
1 parent 528cf61 commit 2a7c348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/masternode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ uint256 CMasternode::CalculateScore(int mod, int64_t nBlockHeight)
if(!GetBlockHash(hash, nBlockHeight)) return 0;

uint256 hash2 = Hash(BEGIN(hash), END(hash));
uint256 hash3 = Hash(BEGIN(hash), END(aux));
uint256 hash3 = Hash(BEGIN(hash), END(hash), BEGIN(aux), END(aux));

uint256 r = (hash3 > hash2 ? hash3 - hash2 : hash2 - hash3);

Expand Down

0 comments on commit 2a7c348

Please sign in to comment.