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

Rosetta, return error if no account #9954

Merged
merged 1 commit into from
Dec 21, 2021

Conversation

psteckler
Copy link
Member

This PR is in response to the check:data error resulting from trying to lookup a public key that was not in the archive database.

The error apparently results from an account balance query. As part of that, there was a lookup of timing info for a given public key, which was assumed to be in the database.

The fix is to try to lookup the key before any other database queries, and return Account_not_found if the key is not present.

The timing info lookup is modified to return None if the key is not present, although the fix just mentioned will prevent the timing info lookup from being called.

(I will test on devnet before we release this code.)

@psteckler psteckler requested a review from a team as a code owner December 21, 2021 21:35
@psteckler psteckler added the ci-build-me Add this label to trigger a circle+buildkite build for this branch label Dec 21, 2021
Copy link
Member

@bkase bkase 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

@psteckler psteckler merged commit c9443a3 into rosetta-1.2.1-safe Dec 21, 2021
@psteckler psteckler deleted the fix/rosetta-no-account-error branch December 21, 2021 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-build-me Add this label to trigger a circle+buildkite build for this branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants