1.0.0-alpha.4

This commit is contained in:
Ario
2019-11-15 13:52:48 +01:00
4 changed files with 54 additions and 27 deletions

View File

@@ -96,9 +96,13 @@ class Block
if ($height>=80458) {
//reward the masternode
// do not reward blacklisted mns after 320000
$check_mn_votes="";
if ($height>320000) {
$check_mn_votes="and voted=0";
}
$mn_winner=$db->single(
"SELECT public_key FROM masternode WHERE status=1 AND blacklist<:current AND height<:start ORDER by last_won ASC, public_key ASC LIMIT 1",
"SELECT public_key FROM masternode WHERE status=1 AND blacklist<:current AND height<:start $check_mn_votes ORDER by last_won ASC, public_key ASC LIMIT 1",
[":current"=>$height, ":start"=>$height-360]
);
_log("MN Winner: $mn_winner", 2);
@@ -1032,8 +1036,14 @@ class Block
if ($height>=80458) {
//reward the masternode
// do not reward blacklisted mns after 320000
$check_mn_votes="";
if ($height>320000) {
$check_mn_votes="and voted=0";
}
$mn_winner=$db->single(
"SELECT public_key FROM masternode WHERE status=1 AND blacklist<:current AND height<:start ORDER by last_won ASC, public_key ASC LIMIT 1",
"SELECT public_key FROM masternode WHERE status=1 AND blacklist<:current AND height<:start $check_mn_votes ORDER by last_won ASC, public_key ASC LIMIT 1",
[":current"=>$height, ":start"=>$height-360]
);
_log("MN Winner: $mn_winner", 2);

View File

@@ -128,6 +128,10 @@ $_config['sanity_rebroadcast_locals'] = true;
// Get more peers?
$_config['get_more_peers'] = true;
// Allow automated resyncs if the node is stuck. Enabled by default
$_config['auto_resync'] = true;
/*
|--------------------------------------------------------------------------
| Logging Configuration

View File

@@ -1,6 +1,6 @@
<?php
// ARO version
define("VERSION", "1.0.0-alpha.2");
define("VERSION", "1.0.0-alpha.4");
// UTC timezone by default
date_default_timezone_set("UTC");