BitMaker-hub / NerdMiner_v2

Improved version of first ESP32 NerdMiner
Other
1.5k stars 268 forks source link

Full lottery mining feature proposal #171

Closed romanmashta closed 11 months ago

romanmashta commented 11 months ago

Full lottery mining proposal.

User configurable option to mine with random nonce, default is off. Due to low hash rate it will never pass full nonce range, as alternative nonce can be random number on every iteration. Random nonce are split between thread for odds and even numbers

Screenshot 2023-09-13 at 23 48 08
BitMaker-hub commented 11 months ago

I like adding features but.. even this is fun and well coded I think could be uneficient. It exists the posibility to repeat a nonce. And don't know how affects hashrate

romanmashta commented 11 months ago

There is no performance impact. But not a problem. I'm just sharing features that I'm playing with.

BitMaker-hub commented 11 months ago

Hey romanmashta, why just add it and provide this as description, can you change it? [] Random nonce mode. Use random nonces instead of incremental nonce mining (Experimental/No hashrate impact)

valerio-vaccaro commented 11 months ago

Nonce searching path has not to be random, solution is.

Calling esp_random() will only waste resources in my opinion.

romanmashta commented 11 months ago

@valerio-vaccaro Generally I agree that this is just a toy method. But from other side fixed hard coded nonce range probably is not the best solution either. It's just a proposal. Maybe there is no any good solution at all, with such low hash rate.

BitMaker-hub commented 11 months ago

I close it for the moment