This commit is contained in:
Ario
2019-09-17 11:09:03 +02:00
parent f744778b1d
commit 7efc49336b
2 changed files with 5 additions and 13 deletions

View File

@@ -290,7 +290,6 @@ class Block
$db->commit();
}
// relese the locking as everything is finished
$db->exec("UNLOCK TABLES");
/***
*
@@ -306,7 +305,7 @@ class Block
if($res !== FALSE) {
$hostname = 'https://www.ariochain.info'; // hardcoded
_log("Supply",3);
_log("Calculate supply",3);
$apiUrl = $hostname.'/api.php?q=node-info';
$aroUrl=file_get_contents($apiUrl);
@@ -325,7 +324,8 @@ class Block
if ($last>216000) {
$votes=[];
$r=$this->db('SELECT id, val FROM votes');
$r=$db->run("SELECT id,val FROM votes");
foreach ($r as $vote) {
$votes[$vote['id']]=$vote['val'];
}
@@ -380,6 +380,8 @@ class Block
);
}
$db->exec("UNLOCK TABLES");
return true;
}