mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Masternode payment improvements / release notes
This commit is contained in:
parent
5cae323d29
commit
186699abff
@ -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
|
||||
|
@ -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)){
|
||||
|
Loading…
Reference in New Issue
Block a user