Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash bug in create_spending_txes
The randomly-generated bitcoin amounts have to be rounded due to floating point calculations. Because satoshi amounts are represented as u64 in certain cases the subtractions would result in a value less than zero, leading to a panic. This was fixed by using a slightly different formula.
- Loading branch information