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

DatabaseBackend.GetLatestLedgerSequence can crash with "index out of range" error #1888

Closed
bartekn opened this issue Oct 30, 2019 · 1 comment
Assignees
Labels
ingest New ingestion system

Comments

@bartekn
Copy link
Contributor

bartekn commented Oct 30, 2019

If SelectRaw in DatabaseBackend.GetLatestLedgerSequence returns no rows it crashes with:

runtime error: index out of range [0] with length 0

Check why SelectRaw doesn't return ErrNoRows in such case.

@tamirms
Copy link
Contributor

tamirms commented Nov 14, 2019

fixed in #1914

@tamirms tamirms closed this as completed Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingest New ingestion system
Projects
None yet
Development

No branches or pull requests

3 participants