You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Increases the number of hashes a SHA256D miner thread attempts
per created block template, and adds a separate counter to allow
an early continuation when the chain tip changes.
The SHA256D algorithm is fast enough that the main miner loop runs
multiple times per second with the previous loop count. In each loop, a
thread generates a new block template, which requires grabbing cs_main
a couple times. I found this to be a significant source of contention,
often causing both SHA mining and wallet syncing to stop.
In contrast, a RandomX miner thread runs its main loop on the order of
minutes, with a lower loop count, and checks on every
hash attempt whether the tip has changed, resulting in approximately one
block template created per block.
I chose nMidLoopCount to approximately match the RandomX timing, while
nInnerLoopCount is still fast enough to be used as an intermittent
sub-second check of the chain height.
0 commit comments