Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forager reporting wrong hashrate for ethash for lolminer #115

Open
alucard20724 opened this issue Apr 7, 2021 · 3 comments
Open

Forager reporting wrong hashrate for ethash for lolminer #115

alucard20724 opened this issue Apr 7, 2021 · 3 comments

Comments

@alucard20724
Copy link

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
Copy link
Author

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

@alucard20724
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant