Changes the accounts_frontiers RPC to return per account results#3791
Merged
Changes the accounts_frontiers RPC to return per account results#3791
Conversation
dsiganos
reviewed
Apr 13, 2022
dsiganos
reviewed
Apr 13, 2022
7cae7fb to
c4ca179
Compare
Contributor
|
The "feature" where we correct accounts, sounds like an unnecessary complication that we should remove. |
Contributor
Author
In the The But, in anyway, this PR is handling it correctly by using the requested account number ( |
clemahieu
previously approved these changes
Apr 14, 2022
dsiganos
previously approved these changes
Apr 14, 2022
Contributor
Author
|
Added a new unit test for it. |
clemahieu
previously approved these changes
Apr 14, 2022
A simpler test case for accounts_frontiers Co-authored-by: Dimitrios Siganos <dimitris@siganos.org>
2497b27 to
9295ddc
Compare
dsiganos
previously approved these changes
Apr 14, 2022
dsiganos
approved these changes
Apr 14, 2022
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The previous implementation returned only an error result in case any of the accounts were invalid. This implementation now handles each account separately returning per account results. It returns an empty string when the account's frontier is zero, and returns an error message for when the provided account is invalid.
Example:
Reference issue: #3752