version update and mn voting ratio

This commit is contained in:
admin@arionum.com
2019-09-13 18:42:31 +03:00
parent e9768b0d10
commit 41223f5a87
2 changed files with 3 additions and 3 deletions

View File

@@ -312,7 +312,7 @@ class Block
_log("Counting the votes from other masternodes", 3);
$r=$db->run("SELECT message, count(message) as c FROM transactions WHERE version=106 AND height>:height group by message", [':height'=>$height-10000]);
foreach ($r as $x) {
if ($x['c']>$total_mns/2) {
if ($x['c']>$total_mns_with_key/1.5) {
$blacklist[]=san($x['message']);
}
}
@@ -352,7 +352,7 @@ class Block
_log("Counting masternode blockchain votes", 3);
$r=$db->run("SELECT message, count(message) as c FROM transactions WHERE version=107 AND height>:height group by message", [':height'=>$height-100000]);
foreach ($r as $x) {
if ($x['c']>$total_mns/1.5) {
if ($x['c']>$total_mns_with_key/1.5) {
$voted[]=san($x['message']);
}
}

View File

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