Skip to content

Commit

Permalink
Merge pull request #27 from nightlydarkcoin/win32compilefix
Browse files Browse the repository at this point in the history
this fixes compilation error on win32
  • Loading branch information
darkcoinproject committed Jul 20, 2014
2 parents dc43009 + 911b66b commit 036648e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5833,7 +5833,7 @@ int CDarkSendPool::GetCurrentMasterNode(int mod, int64 nBlockHeight)

int CDarkSendPool::GetMasternodeRank(CTxIn& vin, int mod)
{
std::vector<pair<uint, CTxIn> > vecMasternodeScores;
std::vector<pair<unsigned int, CTxIn> > vecMasternodeScores;

BOOST_FOREACH(CMasterNode mn, darkSendMasterNodes) {
mn.Check();
Expand All @@ -5851,7 +5851,7 @@ int CDarkSendPool::GetMasternodeRank(CTxIn& vin, int mod)
sort(vecMasternodeScores.rbegin(), vecMasternodeScores.rend(), CompareValueOnly());

unsigned int rank = 0;
BOOST_FOREACH (PAIRTYPE(uint, CTxIn)& s, vecMasternodeScores){
BOOST_FOREACH (PAIRTYPE(unsigned int, CTxIn)& s, vecMasternodeScores){
rank++;
if(s.second == vin) return rank;
}
Expand Down

0 comments on commit 036648e

Please sign in to comment.