Skip to content

Conversation

@UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Jan 28, 2015

Calculate progress out of two parts:

  • mixing progress of denominated balance
  • % of fully anonymized balance

and apply some weights to them to calculate the whole progress (80/20 seems to be pretty smooth for me)

New functions:

  • IsDenominatedAmount - if an amount equal to one of the denoms
  • GetNormalizedAnonymizedBalance - calculates 'normalized' anonymized balance by multiplying each amount (output nValue) by "rounds / nDarksendRounds". It's used to calculate mixing progress of denominated balance (part of whole ds progress).

@eduffield222
Copy link

Awesome, thanks :-)

eduffield222 pushed a commit that referenced this pull request Jan 28, 2015
fix updateDarksendProgress / add isDenominatedAmount and GetNormalizedAnonymizedBalance - v0.11.1.x
@eduffield222 eduffield222 merged commit 3edcf4b into dashpay:v0.11.1.x Jan 28, 2015
@UdjinM6 UdjinM6 deleted the fix_ds_progress branch February 5, 2015 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants