Author

Topic: [ANN][POOL] Mining Pool Hub - Multipool. Multialgo, Auto Exchange to any coin. - page 279. (Read 487803 times)

sr. member
Activity: 476
Merit: 250
How i can add nsgminer for neoscrypt AMD mining?
Now i created in "bin" directory AMD-NEOSCRYPT directory and placed nsgminer.
In Miners directory i copy sgminer.ps1 , renamed it into nsgminer.ps1 and modify it

Code:
$Path = '.\Bin\AMD-NEOSCRYPT\nsgminer.exe'
$Uri = "https://github.com/ghostlander/nsgminer/releases/download/nsgminer-v0.9.2/nsgminer-win64-0.9.2.zip"
$Uri_SubFolder = $true

if((Test-Path $Path) -eq $false)
{
    $FolderName_Old = if($Uri_SubFolder){([IO.FileInfo](Split-Path $Uri -Leaf)).BaseName}else{""}
    $FolderName_New = Split-Path (Split-Path $Path) -Leaf
    $FileName = "$FolderName_New$(([IO.FileInfo](Split-Path $Uri -Leaf)).Extension)"

    try
    {
        if(Test-Path $FileName){Remove-Item $FileName}
        if(Test-Path "$(Split-Path (Split-Path $Path))\$FolderName_New"){Remove-Item "$(Split-Path (Split-Path $Path))\$FolderName_New" -Recurse}
        if($FolderName_Old -ne ""){if(Test-Path "$(Split-Path (Split-Path $Path))\$FolderName_Old"){Remove-Item "$(Split-Path (Split-Path $Path))\$FolderName_Old" -Recurse}}
        Invoke-WebRequest $Uri -OutFile $FileName -UseBasicParsing
        if($FolderName_Old -ne ""){Start-Process "7za" "x $FileName -o$(Split-Path (Split-Path $Path)) -y" -Wait}else{Start-Process "7za" "x $FileName -o$(Split-Path $Path) -y" -Wait}
        if($FolderName_Old -ne ""){Rename-Item "$(Split-Path (Split-Path $Path))\$FolderName_Old" "$FolderName_New"}
    }
    catch
    {
        return
    }
}

$Name = (Get-Item $script:MyInvocation.MyCommand.Path).BaseName

$Algorithms = [PSCustomObject]@{
        NeoScrypt = 'neoscrypt'
 }

$Optimizations = [PSCustomObject]@{
        NeoScrypt = '-g 1 -I 13 -w 64 --thread-concurrency 64'
}

$Algorithms | Get-Member -MemberType NoteProperty | Select -ExpandProperty Name | ForEach {
    [PSCustomObject]@{
        Type = 'AMD'
        Path = $Path
        Arguments = -Join ('--api allow --api-listen -- ', $Algorithms.$_, ' -o $($Pools.', $_, '.Protocol)://$($Pools.', $_, '.Host):$($Pools.', $_, '.Port) -u $($Pools.', $_, '.User) -p x', $Optimizations.$_)
        HashRates = [PSCustomObject]@{$_ = -Join ('$($Stats.', $Name, '_', $_, '_HashRate.Day)')}
        API = 'Xgminer'
        Port = 4028
        Wrap = $false
    }
}

But multipoolminer cant survive it.Whats wrong?


I'll try adding the miners and optimizations ASAP then commit to GitHub.
member
Activity: 86
Merit: 10
How i can add nsgminer for neoscrypt AMD mining?
Now i created in "bin" directory AMD-NEOSCRYPT directory and placed nsgminer.
In Miners directory i copy sgminer.ps1 , renamed it into nsgminer.ps1 and modify it

Code:
$Path = '.\Bin\AMD-NEOSCRYPT\nsgminer.exe'
$Uri = "https://github.com/ghostlander/nsgminer/releases/download/nsgminer-v0.9.2/nsgminer-win64-0.9.2.zip"
$Uri_SubFolder = $true

if((Test-Path $Path) -eq $false)
{
    $FolderName_Old = if($Uri_SubFolder){([IO.FileInfo](Split-Path $Uri -Leaf)).BaseName}else{""}
    $FolderName_New = Split-Path (Split-Path $Path) -Leaf
    $FileName = "$FolderName_New$(([IO.FileInfo](Split-Path $Uri -Leaf)).Extension)"

    try
    {
        if(Test-Path $FileName){Remove-Item $FileName}
        if(Test-Path "$(Split-Path (Split-Path $Path))\$FolderName_New"){Remove-Item "$(Split-Path (Split-Path $Path))\$FolderName_New" -Recurse}
        if($FolderName_Old -ne ""){if(Test-Path "$(Split-Path (Split-Path $Path))\$FolderName_Old"){Remove-Item "$(Split-Path (Split-Path $Path))\$FolderName_Old" -Recurse}}
        Invoke-WebRequest $Uri -OutFile $FileName -UseBasicParsing
        if($FolderName_Old -ne ""){Start-Process "7za" "x $FileName -o$(Split-Path (Split-Path $Path)) -y" -Wait}else{Start-Process "7za" "x $FileName -o$(Split-Path $Path) -y" -Wait}
        if($FolderName_Old -ne ""){Rename-Item "$(Split-Path (Split-Path $Path))\$FolderName_Old" "$FolderName_New"}
    }
    catch
    {
        return
    }
}

$Name = (Get-Item $script:MyInvocation.MyCommand.Path).BaseName

$Algorithms = [PSCustomObject]@{
        NeoScrypt = 'neoscrypt'
 }

$Optimizations = [PSCustomObject]@{
        NeoScrypt = '-g 1 -I 13 -w 64 --thread-concurrency 64'
}

$Algorithms | Get-Member -MemberType NoteProperty | Select -ExpandProperty Name | ForEach {
    [PSCustomObject]@{
        Type = 'AMD'
        Path = $Path
        Arguments = -Join ('--api allow --api-listen -- ', $Algorithms.$_, ' -o $($Pools.', $_, '.Protocol)://$($Pools.', $_, '.Host):$($Pools.', $_, '.Port) -u $($Pools.', $_, '.User) -p x', $Optimizations.$_)
        HashRates = [PSCustomObject]@{$_ = -Join ('$($Stats.', $Name, '_', $_, '_HashRate.Day)')}
        API = 'Xgminer'
        Port = 4028
        Wrap = $false
    }
}

But multipoolminer cant survive it.Whats wrong?
newbie
Activity: 16
Merit: 0
full member
Activity: 204
Merit: 100
Would you please setup some kind of special port for sia that is linked to the ethash multi-algo switch mining port.  As it stands now, dual mining ethash at 12020 and sia at either 20550 or 17022 will not result in a failure and rollover when ethash becomes non-best.  It will become stuck on mining sia indefinitely.

There's also a bug in that dual mining sia at port 20550 slows down both ethash and sia speeds compared to using 17022.
hero member
Activity: 906
Merit: 507
Would you consider adding a PASC coin pool there's only two now nano and suprnova and nano is hitting 90% of the blocks in a hour I believe they are over 50% having a 3rd pool would be a lot of help the other issue is accounts in order to get a account you need to mine a block than the block reward is 100 coins and 5 accounts so ppl are having problems getting accounts the pools aren't giving them to the miners if you could figure out system lets say after you mine x amount of coins you get a account ppl would change to your pool in a min thank you
newbie
Activity: 16
Merit: 0
@MiningPoolHub

Please can you activate port 17025 from the API as it doesn't appear to be working.

Sorry.
I opened it now.
I measured the profitability of the Ethereum and siacoin, and within a month. Your pool gives 20% less than other pools. other coins such noticed. please check this info. please add drc pasc bbr, lbc, sibcoin, crobavanec, ubiq. thanks
newbie
Activity: 6
Merit: 0
@miningpoolhub
on zec only 1 transaction for 30 hours
it's normally? thinking that no
member
Activity: 106
Merit: 10
@miningpoolhub Please add Pascalcoin to your pool.
full member
Activity: 176
Merit: 100
What does on exchange mean?  And what of all these coins that seem to have a small amount of coin on exchange that I cant see in my wallet?  Still confused on this whole deal.

And why does it take what seems to be unreasonable amounts of time mining zcash at 1.1k to display a proper credit of any sort when mining.   Is this normal??

we had incredible luck the past week mining zec and then it took us 24 hours to find a block.  that's why it took a long time for credit to show up

@miningpoolhub, 24 hours? everything ok? something had to be wrong.
newbie
Activity: 21
Merit: 0
What does on exchange mean?  And what of all these coins that seem to have a small amount of coin on exchange that I cant see in my wallet?  Still confused on this whole deal.

And why does it take what seems to be unreasonable amounts of time mining zcash at 1.1k to display a proper credit of any sort when mining.   Is this normal??
newbie
Activity: 10
Merit: 0
There was a bug found and exchanges have disabled deposits and withdraws till a fix is implemented. More information here.
https://zcoin.io/language/en/important-announcement-zerocoin-implementation-bug/

This should be resolved in less than 24 hours according to Zcoin Dev Team.
hero member
Activity: 700
Merit: 500
it seems some 1.3 zcoin are stuck on exchange for me
userid 32342
legendary
Activity: 1456
Merit: 1006
Mining Pool Hub
@MiningPoolHub

Please can you activate port 17025 from the API as it doesn't appear to be working.

Sorry.
I opened it now.
newbie
Activity: 3
Merit: 0
I think the consistent share feedback due to vardiff was the biggest attraction of miningpoolhub. Many people mine here exactly because of vardiff (was definitely a large part of why I chose this pool). Like watson2316 said above, it's seamless for a variety of rig hashrates from small single GPUs up to large nicehash rentals.  It is annoying having small workers rarely submit shares but also annoying for large workers to spam shares, and vardiff fixes both ends.
newbie
Activity: 4
Merit: 0
As far as I know
dwarfpool 2000000000
ethermine 4000000000

currently miningpoolhub have set 2000000000 static diff.
Anyway, I'll consider changes carefully.

Just to be clear, there is no variable difficult as know as vardif for eth at mph anymore, eth has now a static difficult of 2000000000.

Yeah. that's why I wrote 2000000000 static diff.

Why do you need vardiff?
You need lower difficulty or higher difficulty?

Would you consider having multiple static difficulty ports (like Alpereum.ch)? I really liked the vardiff feature as it was "hassle-free" with multiple mining rigs on different hashrates and gave me a constant share rate. Sometimes I also buy hashrate on Nicehash and they now have a minimum difficulty of ~4300MH for ethereum... I guess I have to change pool now Sad

legendary
Activity: 1456
Merit: 1006
Mining Pool Hub
Hope you will add decred and lbry pool soon.

Yeah.
sorry for late
thank you for waiting.
legendary
Activity: 1456
Merit: 1006
Mining Pool Hub
As far as I know
dwarfpool 2000000000
ethermine 4000000000

currently miningpoolhub have set 2000000000 static diff.
Anyway, I'll consider changes carefully.

Just to be clear, there is no variable difficult as know as vardif for eth at mph anymore, eth has now a static difficult of 2000000000.

Yeah. that's why I wrote 2000000000 static diff.

Why do you need vardiff?
You need lower difficulty or higher difficulty?
legendary
Activity: 1456
Merit: 1006
Mining Pool Hub
revisiting the api on mph:

is there an api endpoint for global balance data (like the page with all balances, but as api)?

also last time i asked there was no global api for all algos (workers etc), has this changed?

i would like to list all workers and their coin with balances in a table

Not yet.
I'm working on other critical bugs now.

I'll add that api.

to give you an idea what i want to accomplish with that api:



ideally a single api call, most likely n+1 calls (global balance+workers per not-0 balance)

thanks for looking into it

thank for the idea.
Seems good.

I think I should raise this work's priority.
legendary
Activity: 1456
Merit: 1006
Mining Pool Hub
revisiting the api on mph:

is there an api endpoint for global balance data (like the page with all balances, but as api)?

also last time i asked there was no global api for all algos (workers etc), has this changed?

i would like to list all workers and their coin with balances in a table

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:

Code:
$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'):
Code:
$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)

thanks for this, but this does cycle through all coins and makes +1 http calls, right? even (*2) +1 if also querying workers (afaik they are not included in the dashboarddata, would need to check)

i have already thought about just implementing it that way, but i try to not spam the mph server(s) with that many requests every 10-30sec Cheesy

edit: i have implemented it like that for now, worker stats are a separate call too, very ugly solution Cheesy

some small notes on what can be added additionally:
- worker stats: time connected (12 for 12 min, 120 for 2h etc)
- dashboard stats: currency symbol (BTC,XMR etc)


Please don't use it frequently.
The reason why I didn't open this kind of api is database structure needs some changes for performance.

Pool didn't have hub, switching port stuffs and didn't need these optimizations at start. But I need to tweak some now.
legendary
Activity: 1191
Merit: 1001
Hope you will add decred and lbry pool soon.
Jump to: