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

Add a possibility of reading gsfa from the oldest transaction to the newest #189

Open
linuskendall opened this issue Nov 14, 2024 · 0 comments

Comments

@linuskendall
Copy link
Contributor

For some use cases we might want to be able to read gsfa not from newest to oldest but from oldest to newest.

This would require a method that finds the offset of the oldest transaction by reading all the transactions offsets until it finds one without the 'next' bytes available. Then start returning the transactions in the opposite order.

func (s *LinkedLog) ReadWithSize(offset uint64, size uint64) ([]OffsetAndSizeAndBlocktime, indexes.OffsetAndSize, error) {

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

No branches or pull requests

1 participant