forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be more accurate with denom creation/consumption (#2853)
* Be more accurate with denom creation/consumption - Calculate and pass an actual balance needed to be denominated to CreateDenominated. - Drop GetNeedsToBeAnonymizedBalance and fix corresponding conditions: do not overshoot, do not check max pool amount - these conditions are handled outside. - Properly calculate various balance limits. - Handle edge case for the final denom. * Add an option to control max number of denoms created and respect it `-privatesenddenoms`, default is 300 Note: CreateDenominated failure is not an error anymore * Add few more stats to log in DoAutomaticDenominating
- Loading branch information
Showing
5 changed files
with
107 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.