-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sequencer): make ABCI response for account balances deterministic (
#1574) ## Summary Ensures that a response to an ABCI request for account balances is deterministic. ## Background Previously was not sorted, and the `AssetBalance` stream is non-deterministic, which isn't great for an external API. ## Changes - Created deterministic sorting function for sorting the `AssetBalance`s firstly in descending order by balance, then in ascending order by name if the balances are equal. ## Testing Added unit test to ensure the sorting function works as expected. ## Related Issues closes #1451
- Loading branch information
1 parent
9318650
commit b7be904
Showing
3 changed files
with
221 additions
and
2 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