mkn rewards
This commit is contained in:
@@ -329,6 +329,11 @@ class Block
|
|||||||
$apiUrl = $hostname.'/api.php?q=node-info';
|
$apiUrl = $hostname.'/api.php?q=node-info';
|
||||||
$aroUrl=file_get_contents($apiUrl);
|
$aroUrl=file_get_contents($apiUrl);
|
||||||
$json=json_decode($aroUrl,true);
|
$json=json_decode($aroUrl,true);
|
||||||
|
|
||||||
|
$apiUrlm = $hostname.'/stats/masternodes';
|
||||||
|
$aroUrlm=file_get_contents($apiUrlm);
|
||||||
|
$jsonm=json_decode($aroUrlm,true);
|
||||||
|
|
||||||
$cut = false;
|
$cut = false;
|
||||||
_log("info from $hostname",3);
|
_log("info from $hostname",3);
|
||||||
|
|
||||||
@@ -380,6 +385,7 @@ class Block
|
|||||||
_log($supply,3);
|
_log($supply,3);
|
||||||
|
|
||||||
$data = $json['data'];
|
$data = $json['data'];
|
||||||
|
$mndata = $jsonm;
|
||||||
|
|
||||||
$bind = [
|
$bind = [
|
||||||
":id" => 0,
|
":id" => 0,
|
||||||
@@ -390,7 +396,10 @@ class Block
|
|||||||
":masternodes" => $data['masternodes'],
|
":masternodes" => $data['masternodes'],
|
||||||
":supply" => $supply,
|
":supply" => $supply,
|
||||||
":reward" => $reward,
|
":reward" => $reward,
|
||||||
":mn_reward" => $mn_reward_rate
|
":mn_reward" => $mn_reward_rate,
|
||||||
|
":mn_daily_reward" => $mndata['daily_active_reward'],
|
||||||
|
":mn_daily_cold_reward" => $mndata['daily_cold_reward'],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
$res = $db->run(
|
$res = $db->run(
|
||||||
|
|||||||
Reference in New Issue
Block a user