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
Fix uint256 comparison for stake modifier candidate selection
Upgrading to Bitcoin's latest uint256 type changes the backing storage
from an array of 32-bit integers to a byte array. Since the comparison
operator implementations changed as well, the less-than comparison for
sorting the vector of candidates can produce different block orderings
for the historical stake modifier than the original order from before.
To ensure that we reproduce the same stake modifier values out of this
candidate set, we adopt Peercoin's strategy for sorting the collection
that behaves like the old uint256 implementation.
peercoin/peercoin@4f8df68
0 commit comments