From 41223f5a876f1a646270db3d5ec53246e2d8bc3d Mon Sep 17 00:00:00 2001 From: "admin@arionum.com" Date: Fri, 13 Sep 2019 18:42:31 +0300 Subject: [PATCH] version update and mn voting ratio --- include/block.inc.php | 4 ++-- include/init.inc.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/block.inc.php b/include/block.inc.php index ea8e3ae..b0d6325 100755 --- a/include/block.inc.php +++ b/include/block.inc.php @@ -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']); } } diff --git a/include/init.inc.php b/include/init.inc.php index f2b18ce..cf4ad93 100755 --- a/include/init.inc.php +++ b/include/init.inc.php @@ -1,6 +1,6 @@