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

NDEV-2184: Report error when requested too early slot #195

Merged
merged 2 commits into from
Sep 15, 2023

Conversation

andreisilviudragnea
Copy link

@andreisilviudragnea andreisilviudragnea commented Sep 14, 2023

Added error handling for providing a slot less the earliest slot for the following /api endpoints:

  • /emulate
  • /get-ether-account-data
  • /get-storage-at
  • /trace
  • /trace-next-block

The error for GET request to http://localhost:8080/api/get-ether-account-data?ether=0xbf7043bf6f60ada5b71b0ef7a0264baf93edd1cc&slot=240249818 looks like this:
400 Bad Request

{
    "error": "Slot 240249818 is less than earliest_rooted_slot=241697346",
    "result": "error"
}

Copy link

@Deniskore Deniskore left a comment

Choose a reason for hiding this comment

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

LGTM.

@andreisilviudragnea andreisilviudragnea merged commit 95d5c75 into develop Sep 15, 2023
4 checks passed
@andreisilviudragnea andreisilviudragnea deleted the NDEV-2184 branch September 15, 2023 09:07
afalaleev pushed a commit that referenced this pull request Oct 11, 2023
* Remove #[allow(dead_code)]

* NDEV-2184: Report error when requested too early slot
afalaleev pushed a commit that referenced this pull request Oct 18, 2023
* Remove #[allow(dead_code)]

* NDEV-2184: Report error when requested too early slot
afalaleev pushed a commit that referenced this pull request Oct 18, 2023
* Remove #[allow(dead_code)]

* NDEV-2184: Report error when requested too early slot
afalaleev pushed a commit that referenced this pull request Oct 27, 2023
* Remove #[allow(dead_code)]

* NDEV-2184: Report error when requested too early slot
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.

3 participants