From 0340bf523df9d2cfca0e1349cbe38c5fdc6d143e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=BCseyin=20Uslu?= Date: Mon, 13 Jan 2014 23:57:26 +0200 Subject: [PATCH 1/2] added two brand new api calls; getblockstats and getpoolinfo --- .../include/pages/api/getblockstats.inc.php | 19 ++++++++++ public/include/pages/api/getpoolinfo.inc.php | 35 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 public/include/pages/api/getblockstats.inc.php create mode 100644 public/include/pages/api/getpoolinfo.inc.php diff --git a/public/include/pages/api/getblockstats.inc.php b/public/include/pages/api/getblockstats.inc.php new file mode 100644 index 00000000..9d6200d5 --- /dev/null +++ b/public/include/pages/api/getblockstats.inc.php @@ -0,0 +1,19 @@ +isActive(); + +// Check user token +$user_id = $api->checkAccess($user->checkApiKey($_REQUEST['api_key']), @$_REQUEST['id']); + +$blocks = $statistics->getLastBlocksbyTime(); + +// Output JSON format +echo $api->get_json($blocks); + +// Supress master template +$supress_master = 1; +?> diff --git a/public/include/pages/api/getpoolinfo.inc.php b/public/include/pages/api/getpoolinfo.inc.php new file mode 100644 index 00000000..799c249b --- /dev/null +++ b/public/include/pages/api/getpoolinfo.inc.php @@ -0,0 +1,35 @@ +isActive(); + +// Check user token +$user_id = $api->checkAccess($user->checkApiKey($_REQUEST['api_key']), @$_REQUEST['id']); + +// Output JSON format +$data = array( + // coin info + 'currency' => $config[currency], + 'coinname' => $config[gettingstarted][coinname], + // coin algorithm info + 'cointarget' => $config[cointarget], + 'coindiffchangetarget' => $config[coindiffchangetarget], + 'algorithm' => $config[algorithm], + // stratum + 'stratumport' => $config[gettingstarted][stratumport], + // payments + 'payout_system' => $config[payout_system], + 'min_ap_threshold' => $config[ap_threshold][min], + 'max_ap_threshold' => $config[ap_threshold][max], + 'txfee' => $config[txfee], + 'fees' => $config[fees], +); + +echo $api->get_json($data); + +// Supress master template +$supress_master = 1; +?> From a44d817fbc29cb13454a094050f37ee140b57845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=BCseyin=20Uslu?= Date: Tue, 14 Jan 2014 00:01:32 +0200 Subject: [PATCH 2/2] Updated pools.md. --- POOLS.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/POOLS.md b/POOLS.md index 3ad60a9e..ec4b1ef4 100644 --- a/POOLS.md +++ b/POOLS.md @@ -177,13 +177,16 @@ Small Time Miners are running various stratum only pools for different coins. ### [Coinium.org](http://www.coinium.org/ "Coinium.org") ([@raistlinthewiz](https://github.com/raistlinthewiz/ "raistlinthewiz on GitHub")) -[Coinium.org](http://coinium.org/ "Coinium.org") - high performance pool network that is hosted in UK. +[Coinium.org](http://coinium.org/ "Coinium.org") - high performance pool network. | Pool URL | Coin | Avg. Hashrate | Avg. Active Workers | Notes | | -------------------------------- | ----- | ------------: | ------------------: | ----- | -| http://doge.coinium.org | DOGE | 50 Mhs | ~100 workers | PPLNS | -| http://emd.coinium.org | EMD | 10 Mhs | ~10 workers | PPLNS | -| http://earth.coinium.org | EAC | 15 Mhs | ~30 workers | PPLNS | +| http://earth.coinium.org | EAC | 600 Mhs | ~500 workers | PPLNS | +| http://cat.coinium.org | CAT | 100 Mhs | ~100 workers | PPLNS | +| http://doge.coinium.org | DOGE | 50 Mhs | ~100 workers | PPLNS | +| http://emd.coinium.org | EMD | 15 Mhs | ~30 workers | PPLNS | +| http://lot.coinium.org | LOT | 15 Mhs | ~30 workers | PPLNS | +| http://moon.coinium.org | MOON | 15 Mh s | ~30 workers | PPLNS | ### t3chie