mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
fixed bug with counting votes
This commit is contained in:
parent
12e5f8f4d4
commit
feaaf1e166
@ -43,10 +43,10 @@ public:
|
|||||||
nVotes = 0;
|
nVotes = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
CMasternodePayee(CAmount nValueIn, CScript payee) {
|
CMasternodePayee(CAmount nValueIn, CScript payee, int nVotesIn) {
|
||||||
scriptPubKey = payee;
|
scriptPubKey = payee;
|
||||||
nValue = nValueIn;
|
nValue = nValueIn;
|
||||||
nVotes = 0;
|
nVotes = nVotesIn;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CMasternodePayee c((CAmount)nAmount, payeeIn);
|
CMasternodePayee c((CAmount)nAmount, payeeIn, nIncrement);
|
||||||
vecPayments.push_back(c);
|
vecPayments.push_back(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user