Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not trim values in
payment_amounts
(dashpay#5647)
## Issue being fixed or feature implemented sb produced by sentinel: >"DataString": ... \"payment_amounts\": \"20.00000000|20.00000000\", ... >... > "YesCount": 83, sb produced by core: >"DataString": ... \"payment_amounts\": \"20.00|20.00\", ... > "YesCount": 13, These 2 triggers are for the same block (900552), proposal hashes and addresses are also the same but the difference in `payment_amounts` format makes it look like a different trigger for core and this creates a race. ## What was done? Use `ValueFromAmount` instead of `FormatMoney` to avoid trimming ## How Has This Been Tested? run tests ## Breaking Changes n/a ## Checklist: - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_
- Loading branch information