cubedro / eth-net-intelligence-api

Ethereum Network Intelligence API
http://tinyurl.com/ofndjbo
GNU General Public License v3.0
327 stars 344 forks source link

GPU hashrate reporting #215

Closed tomberek closed 9 years ago

tomberek commented 9 years ago

Allows the setting of a file to use as the source of hashrate. Useful hack until ethminer hashrates can be gotten from rpc.

d11e9 commented 9 years ago

:-1: PR with hack in title is a Hack

Includes WS_SECRET key, please remove.

d11e9 commented 9 years ago
cat "999999999999999999999999999999999999" > lib/latest.hash
tomberek commented 9 years ago

@d11e9: squashed the commit to remove reference to secret. Regarding the possibility of incorrect reporting. Well, that's easy enough with a single line change in app.json line 526: self.stats.hashrate = 999999999999999999999999999999999999; So I agree that it's not perfect, but not worse than it is right now. People just want to have a nice report for their own use.

cubedro commented 9 years ago

We're working on a fix for this. Ethminer will have eth_submitHashrate so geth will be able to send the correct hashrate through eth_hashrate: https://github.com/ethereum/go-ethereum/pull/1596

tomberek commented 9 years ago

Thanks! On Aug 6, 2015 6:18 AM, "Marian OANCΞA" notifications@github.com wrote:

We're working on a fix for this. Ethminer will have eth_submitHashrate so geth will be able to send the correct hashrate through eth_hashrate: ethereum/go-ethereum#1596 https://github.com/ethereum/go-ethereum/pull/1596

— Reply to this email directly or view it on GitHub https://github.com/cubedro/eth-net-intelligence-api/pull/215#issuecomment-128316350 .