-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for change and tiny fee calculations (#112)
* with the change to tiny dust limits and 0.05 sat / byte tx fee rates, some of the rounding needed re-visted as off by one bugs were noticed when calculating change. This has been remedied by using floating point as much as possible and using an int conversion as late as possible to ensure accurate figures. THis has resulted in some tests that had questionable results now becoming more accurate also. * adding nolint to test * achieving the same results but without floats - rejig of change * undo changes in tx.go Co-authored-by: Jad Wahab <15110087+jadwahab@users.noreply.github.com>
- Loading branch information
1 parent
0d68685
commit 841602a
Showing
5 changed files
with
32 additions
and
53 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
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
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