Get block by time stamp (#3514)
* 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 c37b99b2 * 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
Showing
- cmd/rpcdaemon/README.md 10 additions, 9 deletionscmd/rpcdaemon/README.md
- cmd/rpcdaemon/commands/erigon_api.go 1 addition, 0 deletionscmd/rpcdaemon/commands/erigon_api.go
- cmd/rpcdaemon/commands/erigon_block.go 80 additions, 0 deletionscmd/rpcdaemon/commands/erigon_block.go
- cmd/rpcdaemon/commands/eth_call_test.go 207 additions, 0 deletionscmd/rpcdaemon/commands/eth_call_test.go
Loading
Please register or sign in to comment