Masternode payment improvements / release notes

This commit is contained in:
Evan Duffield 2015-02-04 08:24:34 -07:00
parent 5cae323d29
commit 186699abff
2 changed files with 11 additions and 1 deletions

View File

@ -16,6 +16,8 @@ and a new version of enforcement compatible with the newer Bitcoin architechure.
- Added --instantxdepth, which will show X confirmations when a transaction lock is present
- fix coin control crash https://github.com/bitcoin/bitcoin/pull/5700
- always get only confirmed coins by AvailableCoins for every DS relative action
- New languages supported Portuguese, German, Russian, Polish, Spanish, Vietnamese, French,
Italian, Catalan, Chinese, Danish, Finnish, Swedish, Czech, Turkish and Bavarian (and many more)
Thanks to who contributed to this release, at least:
@ -23,6 +25,7 @@ Thanks to who contributed to this release, at least:
- Vertoe
- Udjin
- Holger Schinzel
- Raze
- Mario Müller
- Crowning
- Alexandre Devilliers

View File

@ -717,6 +717,7 @@ void CMasternodePayments::CleanPaymentList()
bool CMasternodePayments::ProcessBlock(int nBlockHeight)
{
if(!enabled) return false;
CMasternodePaymentWinner winner;
@ -749,7 +750,13 @@ bool CMasternodePayments::ProcessBlock(int nBlockHeight)
break;
}
if(winner.nBlockHeight == 0) return false; //no masternodes available
//if we can't find someone to get paid, pick randomly
if(winner.nBlockHeight == 0 && vecMasternodes.size() > 1) {
winner.score = 0;
winner.nBlockHeight = nBlockHeight;
winner.vin = vecMasternodes[0].vin;
winner.payee.SetDestination(vecMasternodes[0].pubkey.GetID());
}
if(Sign(winner)){
if(AddWinningMasternode(winner)){