version update and mn voting ratio
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user