-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Get block by time stamp #3514
Get block by time stamp #3514
Conversation
Can you also add a test (can you |
From an accounting point of view you definitely want the block before the time stamp. If I ask for January 1, I want the block exactly then or before. You want transactions that were fully completed in the period. |
Do we wanna use blocksLRU for this blocks? |
@enriavil1 hi. Is it possible to use sort.Search here? |
@AskAlexSharov I believe sort.Search should work identically to the one I had written. |
* initial * binary search through blocks * snapshot * returning highest block * oldest block is now 0 * multiple test written for getBlockByTimeStamp * retrieved picked block time stamp * added into erigon_api * returning pointer * reverting c37b99b * deleted print * proper rpc block response * fixing test * returning lowest block * lint * typo * fixed test * returning lowest-1 * skip while loop for times too big or small * added to readme * using sort.Search
No description provided.