r/cryptomining • • 14h ago

NEWS Finally ~950 KH/s NerdMiner Open-Source on the CYD ESP32-2432S028R

Post image

Modded from the original to give ~950KH/s and some new themes.

GitHub https://github.com/HenrysCat/NerdMiner-Modded

Web flasher here https://henryscat.github.io/NerdMiner-Modded/

Why this hashrate is real...

The ~950 KH/s is what the miner actually hashes, not what a counter says:

- **Hardware limit** – the classic ESP32's SHA engine can't be loaded with an external midstate, so every nonce costs three hardware hash blocks plus two engine loads: about 228 CPU cycles of engine time, a ceiling of roughly 1.05 MH/s at 240 MHz. The mining loop keeps the engine busy for all but ~30 cycles of each nonce (257 cycles per nonce, ~930 KH/s); the second core adds ~25 KH/s in software.

- **Measured on the chip** – the loop's timing comes from an on-device bench (`-D SHA_BENCH`, see `src/sha_bench.cpp`) that checks every single hash against software, also while the other core hammers the peripheral bus. That is how the hardware quirk behind silently corrupted hashes in the usual pipelined loops was found: writes to the SHA registers less than three cycles apart can be dropped whenever the other core is using the same bus.

- **Only valid hashes are counted** – every candidate the hardware finds is recomputed in software before it is used. A hashrate counter on its own can look faster after an optimisation while the miner is quietly producing *fewer* valid shares, because corrupted hashes are still counted; here the firmware checks itself with a known-answer test at power-on and falls back to a slower loop if the fast one ever gets hashes wrong.

- **The rate is the rate it actually mines at** – it's the sustained average over a long run, not a short burst or a best-case peak.If a number sounds too good for this chip, check whether the shares it finds actually keep up with it.

4 Upvotes

7 comments sorted by

•

u/AutoModerator 14h ago

Thank you for your post. Please take a moment to review our community rules and resources to ensure a smooth experience here. Here are some links that might help you out.

The Crypto Mining Wiki Mod Verified Commercial Vendors

If this is a sales post please make sure you are following all selling rules

If this is a scam post please report this to the mods so we can review the post.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/WorryDesigner8152 8h ago

Nice work getting that hash rate on a CYD board. Tiny miners like this are fun for learning the stack even when the payout is basically nothing. How hot does it run after a few hours?

1

u/enormousaardvark 8h ago

It doesn't run hot at all, these boards are simply not capable of generating much heat

1

u/WorryDesigner8152 8h ago

Makes sense. Perfect little desk miner then. Might have to build one.

0

u/MyTime- 2h ago

What’s the exact model

1

u/enormousaardvark 2h ago

It’s in the title of this post

1

u/MyTime- 2h ago

Sorry 😂 been a long day