demogorgonz / RaspberryPi-CPUMiner

CPUMiner for RaspberryPi Zero, Pi 3, Pi 2, B+, A+
87 stars 29 forks source link

CryptoNight Algorithm Support #3

Closed Dr-Hack closed 6 years ago

Dr-Hack commented 6 years ago

would it be possible/feasible to add cryptonight support on your script ?

demogorgonz commented 6 years ago

Probably, i will have to look into it. I do not have access to RPI at the moment, but you could try to compile this miner instead cpuminer-multi .

Dr-Hack commented 6 years ago

doesn't work .. after running ./autogen.sh , no errors not logs and nothing gets build thats after it took me some time installing all the required dependencies

demogorgonz commented 6 years ago

Have you saw ReadMe ?

It clearly state that you need to run build.sh .

README

Dr-Hack commented 6 years ago

i was talking about "cpuminer-multi" as you provided above .. ofcourse your miner does work but it doesn't support cryptonight

demogorgonz commented 6 years ago

I am sorry but i can’t provide support for repository that isn’t made or tested by me... If i find free time i will test it for sure πŸ™‚

Dr-Hack commented 6 years ago

or if you could incorporate cryptonight into your code that would be a super plus that is if time permits ofcourse thanks for your time πŸ‘

demogorgonz commented 6 years ago

Check this releases page

On raspberry pi execute following:

wget https://github.com/demogorgonz/RaspberryPi-CPUMiner/releases/download/v.1.1/minerd-multi

chmod +x minerd-multi

./minerd-multi -h

Let me know how it went πŸ˜ƒ

Dr-Hack commented 6 years ago

IT works :D information pertaining to the update : minerd-multi --benchmark Output : ./minerd-multi --benchmark [2017-11-08 14:31:49] 3 miner threads started, using 'scrypt' algorithm. [2017-11-08 14:31:49] ...retry after 10 seconds [2017-11-08 14:31:54] thread 2: 4096 hashes, 0.95 khash/s [2017-11-08 14:31:54] thread 0: 4096 hashes, 0.94 khash/s [2017-11-08 14:31:54] thread 1: 4096 hashes, 0.95 khash/s [2017-11-08 14:31:59] thread 0: 4725 hashes, 0.95 khash/s [2017-11-08 14:31:59] thread 2: 4768 hashes, 0.96 khash/s [2017-11-08 14:31:59] Total: 2.85 khash/s

for some reason real mining doesn't return the same hashes now : ./minerd-multi -a cryptonight -o stratum+tcp://electroneum.hashparty.io:3333 -u etnkM66fZa3crgsQLqkk7ec4m71czG3UC8yNV24v2omfZGQmhnekCVtZFDbJo48inZ3wP81fsbvF4CmNBUe9VkPb31ocMP9ajh -p x -t 4

[2017-11-08 14:39:54] accepted: 2/2 (100.00%), 6.82 H/s at diff 908 (yay!!!) [2017-11-08 14:40:04] < {"jsonrpc":"2.0","method":"job","params":{"blob":"0101c3ae8cd0054902396cfbbe6af3d3ae02e6be4c53ee790bfea56ab9eda2ac1745fca75e00de00000000e95169a41a87f822ab73adcf7d0de4b02b1d0fd05e75f80441d1d4ffabe040a411","job_id":"887773119704797","target":"1c2d4800"}} [2017-11-08 14:40:04] Stratum detected new block [2017-11-08 14:40:04] thread 3: 29985752 hashes, 0.00 H/s [2017-11-08 14:40:04] thread 1: 29985736 hashes, 0.00 H/s [2017-11-08 14:40:04] thread 0: 29985728 hashes, 0.00 H/s [2017-11-08 14:40:04] thread 2: 29985744 hashes, 0.00 H/s [2017-11-08 14:40:15] < {"jsonrpc":"2.0","method":"job","params":{"blob":"0101c3ae8cd0054902396cfbbe6af3d3ae02e6be4c53ee790bfea56ab9eda2ac1745fca75e00de000000007cb0608e5d035c4fdf273e3f1353052e33636a994b63391b3fb32d5842de0b6c11","job_id":"794181894673965","target":"8e162400"}}

on the pool page i am getting 6 H/s after running it for like 5 min .. but can be increase the decimal visible value shown on above threads : like change 0.00 H/s to 0.0000H/s that way we might see what we getting :p ..i'll be keeping the Rpi3 mining until it fries :D

Thanks πŸ‘

demogorgonz commented 6 years ago

Check your RPI3 temperature.. It may downclock/underclock the CPU on heat by default if you are using raspbian.. That might display 2 different values.

Feel free to fiddle with the code to achieve what you want ... I've included build.sh with all dependencies so you can build over and over (lasts about 5-10m on RPI3).

So i will close the issue, good luck mining :smile:

adgurinder commented 6 years ago

i have rigs at home and want to use rigs for electroneum do we have software for rigs any IOS so i can run from usb ?

Dr-Hack commented 6 years ago

@adgurinder - you should consult electroneum forum for that .. there are lots of mining apps which provide support for what you mentioned above