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
Changes the signature of IncrementExtraNonce:
Of the values used by IncrementExtraNonce, cs_main only protects the
chain tip; the rest are entirely local to the thread.
The chain tip, in turn, is only used for getting the Height of the tip.
Thus, we can hold cs_main only to get the Height, then perform the
work without holding the lock.
(Noting that not all accesses to `chainActive.Height()` are locked,
so if it's safe, we could remove this usage of cs_main entirely.)
Removes one extraneous copy of the nonce into a thread local variable
(there were previously two, and I suspect the extra was already being
optimized away).
0 commit comments