Skip to content

Commit

Permalink
Merge pull request #266 from UdjinM6/v0.11.2.x_fix_scorecalculation_hash
Browse files Browse the repository at this point in the history
V0.11.2.x fix scorecalculation hash
  • Loading branch information
evan82 committed Mar 23, 2015
2 parents b0786bb + 2a7c348 commit bf52910
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 bf52910

Please sign in to comment.