QuilibriumNetwork / ceremonyclient

Mirror of Quilibrium git repo: ceremonyclient
GNU Affero General Public License v3.0
95 stars 41 forks source link

Remove extra difficulty check for proofs #289

Closed tjsturos closed 2 months ago

tjsturos commented 2 months ago

There was a redundant check for if the increment was over 800k.

This would be redundant due to the first check of "if the difficulty was under 25k" would be met at anything over 700k.

Moved to a function, due to it being used twice (in the Calculating and Verifying of the Proof) and to be able to add tests.

CassOnMars commented 2 months ago

looks good minus the underflow check