ifdefelse / ProgPOW

A Programmatic Proof-of-Work for Ethash. Forked from https://github.com/ethereum-mining/ethminer
GNU General Public License v3.0
257 stars 84 forks source link

Fixed period seed #15

Closed hackmod closed 5 years ago

hackmod commented 5 years ago

WARNING: this is a bug report PR with some quick hack.

This is a quick hack to fix period_seed bug reported at issue #14 and fix CUDA_ERROR_CONTEXT_IS_DESTROYED issue.

(only getWork() support tested)

image

ifdefelse commented 5 years ago

Thanks for the change. I made a small tweak to it so that compileKernel is only called from a single location. I've "mined" 2000 blocks locally with this change.

For my own reference the geth command to use is: ./geth --rpc --nodiscover --etherbase 0 --mine