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

follower: add round information for missing deltas request #5277

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

tzaffi
Copy link
Contributor

@tzaffi tzaffi commented Apr 7, 2023

Providing the round information when deltas round is incompatible with sync round

e.g when hitting /v2/deltas/1 for SyncRound=1337

Previous response was:

{"message":"failed retrieving State Delta"}

New response is:

{"message":"failed retrieving State Delta: round 1 before dbRound 1336"}

Test Plan

CI + Local

Comment on lines -35 to -37
errFailedToParseTransaction = "failed to parse transaction"
errFailedToParseBlock = "failed to parse block"
errFailedToParseCert = "failed to parse cert"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

unused errors

Copy link
Contributor

@algochoi algochoi left a comment

Choose a reason for hiding this comment

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

Looks good to me, error looks sensible

@tzaffi tzaffi marked this pull request as ready for review April 10, 2023 14:47
@winder winder changed the title Enhancement: Follower mode - add round information for failing deltas request follower: add round information for missing deltas request Apr 11, 2023
@winder winder merged commit 9875686 into algorand:master Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants