aaronsace
|
|
November 30, 2016, 01:30:36 AM Last edit: November 30, 2016, 02:15:16 AM by aaronsace |
|
In case anyone is interested, as there is no total balance for pool yet, here is the php code to get your absolute total balance in BTC: <?php $id = "[enter your user id here]"; $key = "[enter your api key here]"; $balance = 0; foreach (json_decode(@file_get_contents("http://miningpoolhub.com/index.php?page=api&action=getminingandprofitsstatistics"))->{'return'} as $coin) { $url = "http://" . $coin->{'coin_name'} . ".miningpoolhub.com/index.php?page=api&action=getdashboarddata&api_key=" . $key . "&id=" . $id; $json = @file_get_contents($url); $data = json_decode($json)->{'getdashboarddata'}->{'data'}; $balance += (((float)$data->{'balance'}->{'confirmed'} + (float)$data->{'balance'}->{'unconfirmed'} + (float)$data->{'balance_for_auto_exchange'}->{'confirmed'} + (float)$data->{'balance_for_auto_exchange'}->{'unconfirmed'} + (float)$data->{'balance_on_exchange'} + (float)$data->{'personal'}->{'estimates'}->{'payout'})) * (float)$coin->{'highest_buy_price'}; sleep(0.5); } header('content-type: application/json'); echo json_encode($balance); ?>
Here it is for PowerShell (you can run this on your PC by simply saving this text in a '.PS1' file i.e. 'balance.ps1'): $id = "[enter your user id here]" $key = "[enter your api key here]" $balance = 0 foreach ($coin in (Invoke-WebRequest -Uri "http://miningpoolhub.com/index.php?page=api&action=getminingandprofitsstatistics" | ConvertFrom-Json).return) { $url = "http://" + $coin.coin_name + ".miningpoolhub.com/index.php?page=api&action=getdashboarddata&api_key=" + $key + "&id=" + $id $json = Invoke-WebRequest -Uri $url $data = ($json | ConvertFrom-Json).getdashboarddata.data $balance += (([float]$data.balance.confirmed + [float]$data.balance.unconfirmed + [float]$data.balance_for_auto_exchange.confirmed + [float]$data.balance_for_auto_exchange.unconfirmed + [float]$data.balance_on_exchange + [float]$data.personal.estimates.payout)) * [float]$coin.highest_buy_price sleep(0.5); } echo ($balance | ConvertTo-Json)
|
|
|
|
|
melloyellow
|
|
November 30, 2016, 03:45:23 AM |
|
Does the vcash pool support getwork or just stratum?
Not sure if it supports it but why would you use getwork when stratum is superior? Don't think about what you mine; just mine the most profitable. You will improve the health of the coin and get far more than mining it directly. Set your auto exchange coin in the hub to the coin that you want (Vcash) and set your hub worker (PC1) to "AMD - Blake-Vanilla, Ethash, Equihash, Groestl, Myriad-Groestl, Skein". Put this in a bat file (i.e. mining.bat) and download sgminer and claymore miners: https://github.com/miningpoolhub/sgminer/releases/download/5.3.1/Release.ziphttps://bitcointalk.org/index.php?topic=1433925.0https://bitcointalk.org/index.php?topic=1670733.0:start
cd C:\ZecMiner64 ZecMiner64 -zpool europe.equihash-hub.miningpoolhub.com:12023 -zwal username.pc1 -zpsw x -mport 0 -retrydelay -1 -ftime 0 -i 6
cd C:\EthDcrMiner64 EthDcrMiner64 -epool europe.ethash-hub.miningpoolhub.com:12020 -ewal username.pc1 -epsw x -esm 3 -allpools 1 -mport 0 -retrydelay -1 -ftime 0
cd C:\sgminer sgminer --no-retry -k vanilla -o stratum+tcp://europe.hub.miningpoolhub.com:12019 -u username.pc1 -p x sgminer --no-retry -k groestlcoin -o stratum+tcp://europe.hub.miningpoolhub.com:12004 -u username.pc1 -p x sgminer --no-retry -k myriadcoin-groestl -o stratum+tcp://europe.hub.miningpoolhub.com:12005 -u username.pc1 -p x sgminer --no-retry -k skeincoin -o stratum+tcp://europe.hub.miningpoolhub.com:12016 -u username.pc1 -p x
timeout 1 goto start
Well I have a couple ztex 1.15y fpga's laying around collecting dust and I can only find miners that work over getwork, no stratum. Suprnova's pool offered getwork but then vcash-john kicked his pool to the curb. So now I have no idea what to do with them. Thanks for offering your .bat , I may need to use it someday.
|
|
|
|
miningpoolhub (OP)
Legendary
Offline
Activity: 1456
Merit: 1006
Mining Pool Hub
|
|
November 30, 2016, 04:20:30 AM |
|
Is it possible to define the mining difficulty and would there be any reason to do so? Currently mining zec @ 880 sol/s with a difficulty of 640.
You can only define starting difficulty for hint. Pool adjusts difficulty value as time passes automatically and it solves many inefficient problems smoothly. Actually there's no need to set static diff if you don't use some special custom GPU kernel. There's some myth about it that using static diff will improve their earnings but it's totally not.
|
|
|
|
miningpoolhub (OP)
Legendary
Offline
Activity: 1456
Merit: 1006
Mining Pool Hub
|
|
November 30, 2016, 04:24:09 AM |
|
Does the vcash pool support getwork or just stratum?
Stratum only. I don't know any pool that supports getwork these days. It's old, inefficient way of mining.
|
|
|
|
miningpoolhub (OP)
Legendary
Offline
Activity: 1456
Merit: 1006
Mining Pool Hub
|
|
November 30, 2016, 04:25:54 AM |
|
In case anyone is interested, as there is no total balance for pool yet, here is the php code to get your absolute total balance in BTC: <?php $id = "[enter your user id here]"; $key = "[enter your api key here]"; $balance = 0; foreach (json_decode(@file_get_contents("http://miningpoolhub.com/index.php?page=api&action=getminingandprofitsstatistics"))->{'return'} as $coin) { $url = "http://" . $coin->{'coin_name'} . ".miningpoolhub.com/index.php?page=api&action=getdashboarddata&api_key=" . $key . "&id=" . $id; $json = @file_get_contents($url); $data = json_decode($json)->{'getdashboarddata'}->{'data'}; $balance += (((float)$data->{'balance'}->{'confirmed'} + (float)$data->{'balance'}->{'unconfirmed'} + (float)$data->{'balance_for_auto_exchange'}->{'confirmed'} + (float)$data->{'balance_for_auto_exchange'}->{'unconfirmed'} + (float)$data->{'balance_on_exchange'} + (float)$data->{'personal'}->{'estimates'}->{'payout'})) * (float)$coin->{'highest_buy_price'}; sleep(0.5); } header('content-type: application/json'); echo json_encode($balance); ?>
Here it is for PowerShell (you can run this on your PC by simply saving this text in a '.PS1' file i.e. 'balance.ps1'): $id = "[enter your user id here]" $key = "[enter your api key here]" $balance = 0 foreach ($coin in (Invoke-WebRequest -Uri "http://miningpoolhub.com/index.php?page=api&action=getminingandprofitsstatistics" | ConvertFrom-Json).return) { $url = "http://" + $coin.coin_name + ".miningpoolhub.com/index.php?page=api&action=getdashboarddata&api_key=" + $key + "&id=" + $id $json = Invoke-WebRequest -Uri $url $data = ($json | ConvertFrom-Json).getdashboarddata.data $balance += (([float]$data.balance.confirmed + [float]$data.balance.unconfirmed + [float]$data.balance_for_auto_exchange.confirmed + [float]$data.balance_for_auto_exchange.unconfirmed + [float]$data.balance_on_exchange + [float]$data.personal.estimates.payout)) * [float]$coin.highest_buy_price sleep(0.5); } echo ($balance | ConvertTo-Json)
Great codes!!!! Sorry that I'm not that diligent to add BTC total value yet.
|
|
|
|
miningpoolhub (OP)
Legendary
Offline
Activity: 1456
Merit: 1006
Mining Pool Hub
|
|
November 30, 2016, 04:36:11 AM |
|
Well I have a couple ztex 1.15y fpga's laying around collecting dust and I can only find miners that work over getwork, no stratum. Suprnova's pool offered getwork but then vcash-john kicked his pool to the curb. So now I have no idea what to do with them.
Thanks for offering your .bat , I may need to use it someday.
Oh.. can you tell me what happened between Suprnova's pool and vcash-john? I didn't know about it. As far as I searched this issue for few minutes, it seems like suprnova had wrong implementation about incentive rewards. https://v.cash/forum/threads/suprnova-is-not-mining-any-blocks.660/Have you tried this project for mining? https://github.com/slush0/stratum-mining-proxyI haven't tried it but it is saying that it provides "getwork-compatible proxy for stratum mining pools".
|
|
|
|
miningpoolhub (OP)
Legendary
Offline
Activity: 1456
Merit: 1006
Mining Pool Hub
|
|
November 30, 2016, 04:37:17 AM |
|
This is the best mining pool out there. upload picWow. Is this your mining result from miningpoolhub?
|
|
|
|
melloyellow
|
|
November 30, 2016, 05:25:04 AM |
|
Well I have a couple ztex 1.15y fpga's laying around collecting dust and I can only find miners that work over getwork, no stratum. Suprnova's pool offered getwork but then vcash-john kicked his pool to the curb. So now I have no idea what to do with them.
Thanks for offering your .bat , I may need to use it someday.
Oh.. can you tell me what happened between Suprnova's pool and vcash-john? I didn't know about it. As far as I searched this issue for few minutes, it seems like suprnova had wrong implementation about incentive rewards. https://v.cash/forum/threads/suprnova-is-not-mining-any-blocks.660/Have you tried this project for mining? https://github.com/slush0/stratum-mining-proxyI haven't tried it but it is saying that it provides "getwork-compatible proxy for stratum mining pools". Well it's a bit controversial. John Conner says suprnova is not including incentive rewards in any blocks but ocminer says he was and that it can be verified on the explorer. John Conner blacklisted his ip address (at some point) and so ocminer shut the pool down. At this point I have no idea who to believe, it's just shenanigans. Thanks for finding that proxy I'll check it out. Did you ever set up an irc channel?
|
|
|
|
miningpoolhub (OP)
Legendary
Offline
Activity: 1456
Merit: 1006
Mining Pool Hub
|
|
November 30, 2016, 06:20:29 AM |
|
Well it's a bit controversial. John Conner says suprnova is not including incentive rewards in any blocks but ocminer says he was and that it can be verified on the explorer. John Conner blacklisted his ip address (at some point) and so ocminer shut the pool down. At this point I have no idea who to believe, it's just shenanigans.
Thanks for finding that proxy I'll check it out.
Did you ever set up an irc channel?
Ah.. thank you for detailed story. No irc currently. I'm about to open Slack or Gitter soon. Which one do you prefer? Slack? Gitter? Or just IRC?
|
|
|
|
aaronsace
|
|
November 30, 2016, 09:17:57 AM |
|
This is the best mining pool out there. upload picWow. Is this your mining result from miningpoolhub? Yep, November has been a good month.
|
|
|
|
aurigae
|
|
November 30, 2016, 08:39:01 PM |
|
hardly get a share submitted on vtc, diff went way up
|
¯\_(ツ)_/¯
|
|
|
aaronsace
|
|
November 30, 2016, 08:56:33 PM |
|
hardly get a share submitted on vtc, diff went way up
Just set your auto exchange to Vertcoin instead.
|
|
|
|
aurigae
|
|
November 30, 2016, 09:28:54 PM |
|
hardly get a share submitted on vtc, diff went way up
solved - tpruvot ccminer miner somehow fails - alexis78/ccminer works
|
¯\_(ツ)_/¯
|
|
|
aurigae
|
|
November 30, 2016, 09:33:19 PM |
|
since monero has its day, Will you add it to the pool anytime soon?
|
¯\_(ツ)_/¯
|
|
|
miningpoolhub (OP)
Legendary
Offline
Activity: 1456
Merit: 1006
Mining Pool Hub
|
|
December 01, 2016, 12:46:06 AM |
|
hardly get a share submitted on vtc, diff went way up
solved - tpruvot ccminer miner somehow fails - alexis78/ccminer works Normally, share should be submitted around 20 seconds interval. If minimum difficulty is too high, please tell me. I'll lower that value.
|
|
|
|
miningpoolhub (OP)
Legendary
Offline
Activity: 1456
Merit: 1006
Mining Pool Hub
|
|
December 01, 2016, 01:05:54 AM |
|
since monero has its day, Will you add it to the pool anytime soon?
Yes monero is next coin to add. I'm working on it.
|
|
|
|
aurigae
|
|
December 01, 2016, 01:21:29 AM |
|
since monero has its day, Will you add it to the pool anytime soon?
Yes monero is next coin to add. I'm working on it. great
|
¯\_(ツ)_/¯
|
|
|
aurigae
|
|
December 01, 2016, 01:25:08 AM |
|
hardly get a share submitted on vtc, diff went way up
solved - tpruvot ccminer miner somehow fails - alexis78/ccminer works Normally, share should be submitted around 20 seconds interval. If minimum difficulty is too high, please tell me. I'll lower that value. yep fixed that as posted earlier will check tomorrow if hash average reported correctly over 12h+
|
¯\_(ツ)_/¯
|
|
|
aurigae
|
|
December 01, 2016, 02:21:35 AM |
|
Tested a bit, for me 8 - 42.779 seems to work best Maybe you can offer a low diff port for slow miners like me ^^
|
¯\_(ツ)_/¯
|
|
|
|