skot / ESP-Miner

A bitcoin ASIC miner for the ESP32
GNU General Public License v3.0
328 stars 121 forks source link

Please add compatibility with Nicehash #251

Closed amauryvsosa closed 1 month ago

amauryvsosa commented 3 months ago

Could You please add compatibility to conect to nicehash pool?

skot commented 3 months ago

what's not working?

amauryvsosa commented 3 months ago

Hi skot, good morning/afternoon/night I'm using Bit Axe Supra v401 I'm using the generated pool by nicehash appears connected but in the logs it shows err no 113 and tries to connect to 0.0.0.0 And using Xmrig with the same generated pool and port in a Android device nicehash recognice it

I can connect the bitaxe to public pool io and vkbit

El jue, 4 de jul de 2024, 11:22 a. m., Skot @.***> escribió:

what's not working?

— Reply to this email directly, view it on GitHub https://github.com/skot/ESP-Miner/issues/251#issuecomment-2209376648, or unsubscribe https://github.com/notifications/unsubscribe-auth/BASL2KWJS4EJOOFVP5OKD4LZKWAEDAVCNFSM6AAAAABKLZWS36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBZGM3TMNRUHA . You are receiving this because you authored the thread.Message ID: @.***>

skot commented 3 months ago

ok, 0.0.0.0 is a DNS error. are you sure you entered the stratum address correctly?

amauryvsosa commented 3 months ago

Hi Skot To be more precise I show you the configuration

stratum given by nicehash and bitaxe config [image: configuracion.png]

using port 443 logs [image: WhatsApp Image 2024-07-04 at 12.59.38 PM.jpeg]

using port 9200 there are no logs [image: WhatsApp Image 2024-07-04 at 12.59.39 PM.jpeg]

hash rate, shares in both cases Nicehash doesn't recognize the device and in both cases the device keeps rebooting.

I'm doing something wrong? or maybe it's a bug I would really appreciate your help

El jue, 4 jul 2024 a la(s) 12:02 p.m., Skot @.***) escribió:

ok, 0.0.0.0 is a DNS error. are you sure you entered the stratum address correctly?

— Reply to this email directly, view it on GitHub https://github.com/skot/ESP-Miner/issues/251#issuecomment-2209415553, or unsubscribe https://github.com/notifications/unsubscribe-auth/BASL2KTNJCL5IDULSZ36L6DZKWE3TAVCNFSM6AAAAABKLZWS36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBZGQYTKNJVGM . You are receiving this because you authored the thread.Message ID: @.***>

skot commented 3 months ago

the images didn't post

amauryvsosa commented 3 months ago

An apology

Stratum generated by Nicehash and configuration https://ibb.co/KqXJWjD ( https://ibb.co/KqXJWjD)

Port 443 logs https://ibb.co/PjfDgqB (https://ibb.co/PjfDgqB)

Port 9200 Logs https://ibb.co/g9p14B6 (https://ibb.co/g9p14B6)

El jue, 4 jul 2024 a la(s) 1:35 p.m., Skot @.***) escribió:

the images didn't post

— Reply to this email directly, view it on GitHub https://github.com/skot/ESP-Miner/issues/251#issuecomment-2209491378, or unsubscribe https://github.com/notifications/unsubscribe-auth/BASL2KWKVINLC42MD45C4E3ZKWPXBAVCNFSM6AAAAABKLZWS36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBZGQ4TCMZXHA . You are receiving this because you authored the thread.Message ID: @.***>

skot commented 3 months ago

can you try and get the logs from stratum+tcp://sha256asicboost.auto.nicehash.com:9200 ? Port 443 is SSL and isn't supported.

skot commented 3 months ago

for me, nicehash sets the initial difficulty to 262144.0 so it will take a while on a Bitaxe before any shares are submitted.

amauryvsosa commented 3 months ago

so, do you can connect your miner to nicehash correctly?

Configuration with 9200 port https://ibb.co/rQm9kDL ( https://ibb.co/rQm9kDL)

Hashrate https://ibb.co/hZ4qf1w (https://ibb.co/hZ4qf1w)

I left it running for about 30 minutes but it keeps restarting did you make any extra configuration in your router or something?

El jue, 4 jul 2024 a la(s) 2:13 p.m., Skot @.***) escribió:

for me, nicehash sets the initial difficulty to 262144.0 so it will take a while on a Bitaxe before any shares are submitted.

— Reply to this email directly, view it on GitHub https://github.com/skot/ESP-Miner/issues/251#issuecomment-2209523291, or unsubscribe https://github.com/notifications/unsubscribe-auth/BASL2KSGO4DGCYAOHZLLY53ZKWUGDAVCNFSM6AAAAABKLZWS36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBZGUZDGMRZGE . You are receiving this because you authored the thread.Message ID: @.***>

amauryvsosa commented 3 months ago

update: I was already able to connect with Nicehash by updating the firmware from 2.1.3 to 2.1.8 and it recognizes the device, however, shares and rejected remain at 0

El jue, 4 jul 2024 a la(s) 3:28 p.m., Amaury Villanueva Sosa ( @.***) escribió:

so, do you can connect your miner to nicehash correctly?

Configuration with 9200 port https://ibb.co/rQm9kDL ( https://ibb.co/rQm9kDL)

Hashrate https://ibb.co/hZ4qf1w (https://ibb.co/hZ4qf1w)

I left it running for about 30 minutes but it keeps restarting did you make any extra configuration in your router or something?

El jue, 4 jul 2024 a la(s) 2:13 p.m., Skot @.***) escribió:

for me, nicehash sets the initial difficulty to 262144.0 so it will take a while on a Bitaxe before any shares are submitted.

— Reply to this email directly, view it on GitHub https://github.com/skot/ESP-Miner/issues/251#issuecomment-2209523291, or unsubscribe https://github.com/notifications/unsubscribe-auth/BASL2KSGO4DGCYAOHZLLY53ZKWUGDAVCNFSM6AAAAABKLZWS36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBZGUZDGMRZGE . You are receiving this because you authored the thread.Message ID: @.***>

CoanLuciano commented 3 months ago

@skot check these logs collected today.

Model: BM1366 Version: v2.1.8 Board Version: 0.11

₿ (236564) stratum_task: rx: {"id":null,"method":"mining.notify","params":["00000000a0147054","8ed22647900f047c7d2d1a4b8b19a5871725675400026a9a0000000000000000","01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff4f036afb0c082f5669614254432f2cfabe6d6d71df5ccf6e725442f1dbd7e01ec62efd0545aa123f3d68f45cc0ead077495e461000000000000000109022b404a6382f56","ffffffff03e79ac513000000001976a914fb37342f6275b13936799def06f2eb4c0f20151588ac00000000000000002b6a2952534b424c4f434b3ad062b8b778d8e7eddcf46c6213d3008395252892f1f300aee5c7662a006319020000000000000000266a24aa21a9edaed2d747c362313dbe040c17aa3de9f9c59229a5d8c06954e68fb013e8f40fdd00000000",["214d6a67ff2a05b13725a1e359c28a69d2351d5eaefe2543b345b8a334d16ee4","7490b9b55f5251971d2193085ad2c905896de7d15da86ac9a2df9218be1548fe","e6547baa532693e2bfa3a9b98e28603b1dc1960536b42d3566e1892c80b6c6b0","eb450ccbaa578fed680e52c803dccece65155262f4f5ff53a2091309aa6962a7","6e692fcb05a959d2f88463ddf2a947c16a0bf9077c0037d7cd3aa964a5c02277","678b7c6199e7d0ab7547cc6f5c8ece63512f89a5f3c9e9ec70ee722e58851176","23281b1c97f4b42779d4590790d7b2680a9386d9894553bdb0e446077abf8c82","258457e87f76159f0da0f82989b763649f88a0349a80b8602c35181386c3959b","441f2676afaf2197c19bb24f3d2fcb3d317a43b0836c2418c2de1ea65199fd21","cb197d0c2acb8bd9543ded174a365a5328bc6266cd51d18cc1c85b035e3c6067","6f974b7aa85bf30699430244d508393935cb993016be10f0d11be52bda111de5","1ebd2731dffef83e339f7adde08565492008d64975d508bf8fb26cbd782b1026"],"20000000","17038a6d","6687d4d6",false]} ₿ (236714) bm1366Module: RX Job ID: 70 ₿ (236724) asic_result: Nonce difficulty 306.12 of 32768. ₿ (237984) create_jobs_task: New Work Dequeued 00000000a0147054 ₿ (240654) bm1366Module: RX Job ID: 00 ₿ (240664) asic_result: Nonce difficulty 2800.82 of 32768. ₿ (243824) bm1366Module: RX Job ID: 08 ₿ (243824) asic_result: Nonce difficulty 563.79 of 32768. ₿ (249324) bm1366Module: RX Job ID: 20 ₿ (249334) asic_result: Nonce difficulty 265.71 of 32768. ₿ (249394) bm1366Module: RX Job ID: 20 ₿ (249394) asic_result: Nonce difficulty 85767.46 of 32768. ₿ (249394) stratum_api: tx: {"id": 6, "method": "mining.submit", "params": ["<my address, I removed>", "00000000a0147053", "14000000", "6687d49a", "515500d6", "06c5c000"]} ₿ (249674) stratum_task: rx: {"id":6,"result":false,"error":[5,"Invalid extranonce2 size."]} ₿ (249674) stratum_task: message result rejected

seangrant82 commented 2 months ago

extra nonce is known issue (https://github.com/skot/ESP-Miner/issues/193) but like @skot mentioned, the difficulty may mean it will take a while for share to be submitted. How long have you had the bitaxe mining to nicehash and still have not see shares?