yuzi-co / Forager

Advanced multi-algo profit switching miner
GNU General Public License v3.0
24 stars 14 forks source link

Forager reporting wrong hashrate for ethash for lolminer #115

Open alucard20724 opened 3 years ago

alucard20724 commented 3 years ago

Forager is reporting wrong hash rate for ethash lolminer.

adjustment for lolminer API appears to have no effect.

example.. lolminer is reporting 50Mhash for 5700 however, forager reports 50 hash. multiplier in LOL api has no affect.

alucard20724 commented 3 years ago

if anyone has a fix for this, please share. thanks.

alucard20724 commented 3 years ago

this is the multiplier that i added in LOL api.. it doesn't work.

        "LOL" {
            $Request = Invoke-HTTPRequest -Port $Miner.ApiPort -Path "/summary"
            if ($Request) {
                $Data = $Request | ConvertFrom-Json
                $HashRate = [double]$Data.Session.Performance_Summary
                if ($Data.algo -eq 'ETHASH') {
                    $HashRate = [double]$Data.Session.Performance_Summary * 1e6
                }
                $Shares = @(
                    [int64]$Data.Session.Accepted
                    [int64]$Data.Session.Submitted - [int64]$Data.Session.Accepted
                )
            }
        }

if anyone has a fix, it would be greatly appreciated... the problem is the same for etchash and autolykos algo.

alucard20724 commented 3 years ago

I do have a workaround. i created a second api for LOL.

    "LOLETH" {
        $Request = Invoke-HTTPRequest -Port $Miner.ApiPort -Path "/summary"
        if ($Request) {
            $Data = $Request | ConvertFrom-Json
            $HashRate = [double]$Data.Session.Performance_Summary * 1e6
            $Shares = @(
                [int64]$Data.Session.Accepted
                [int64]$Data.Session.Submitted - [int64]$Data.Session.Accepted
            )
        }
    }

workaround for ethash, etchash, and ergo