Skip to content

fixing bugs in the function GetBlockByTimeStamp#6664

Merged
enriavil1 merged 8 commits into
erigontech:develfrom
AleksanderAvila:getBlockByTimeStamp-fix
Jan 22, 2023
Merged

fixing bugs in the function GetBlockByTimeStamp#6664
enriavil1 merged 8 commits into
erigontech:develfrom
AleksanderAvila:getBlockByTimeStamp-fix

Conversation

@AleksanderAvila

Copy link
Copy Markdown
Contributor

#6408
Sometimes the number was close but too high. To solve this problem I moved backwards in order to find a closer block with the requested time stamp.

@enriavil1

Copy link
Copy Markdown
Contributor

I find that here might be another problem. When getting headerByNumber through blockreader I am not able to get anything below block number 15820999. Anything lower I get nil which might be the second problem with #6408

@AskAlexSharov AskAlexSharov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

merge devel pls

@AskAlexSharov

Copy link
Copy Markdown
Collaborator

FYI: @enriavil1 I think you have permissions to create branches in Erigon repo.

@enriavil1

Copy link
Copy Markdown
Contributor

FYI: @enriavil1 I think you have permissions to create branches in Erigon repo.

I let my brother solve it so he can start contributing to erigon. I do have permission though thank you!

@AskAlexSharov

Copy link
Copy Markdown
Collaborator
  1. One more time merge devel plz
  2. Seems you committed tests submodule not by intention

@enriavil1 enriavil1 merged commit b5b9950 into erigontech:devel Jan 22, 2023
@AlexeyAkhunov

Copy link
Copy Markdown
Contributor

It has changes tests data, perhaps accidentally, please fix or revert

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

Successfully merging this pull request may close these issues.

4 participants