Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shard id parameter for system account #430

Merged
merged 7 commits into from
Mar 12, 2024
Merged

Conversation

miiu96
Copy link
Contributor

@miiu96 miiu96 commented Mar 4, 2024

  • An additional parameter called forced-shard-id has been introduced to the address group.
  • This new parameter makes it easier to retrieve information related to a system account.
  • Please note that this parameter is only applicable when the given address corresponds to a system account.

@miiu96 miiu96 self-assigned this Mar 4, 2024
miiu96 and others added 2 commits March 4, 2024 12:59
@bogdan-rosianu bogdan-rosianu self-requested a review March 7, 2024 13:26
iulianpascalau
iulianpascalau previously approved these changes Mar 7, 2024
@@ -137,7 +137,7 @@ func (group *accountsGroup) getAccounts(c *gin.Context) {
return
}

options, err := parseAccountQueryOptions(c)
options, err := parseAccountQueryOptions(c, addresses[0])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can panic if we did not provide any addresses

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added extra check

miiu96 added 2 commits March 8, 2024 16:17
…o shard-id-for-system-account
miiu96 added 2 commits March 8, 2024 16:24
@miiu96 miiu96 merged commit 34c7d95 into rc/v1.7.0 Mar 12, 2024
4 checks passed
@miiu96 miiu96 deleted the shard-id-for-system-account branch March 12, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants