prysm
                                
                                 prysm copied to clipboard
                                
                                    prysm copied to clipboard
                            
                            
                            
                        chore(BlockByTimestamp): Remove unnecessary conversion and infeasible check, add a case in `findMinTargetEth1Block`
What type of PR is this?
- Other
What does this PR do? Why is it needed?
- In findMinTargetEth1Block, handle an additional case when the header with the current number does not exist, then return the previous header, the latest header whose timestamp is just earlier than the target time.
- Change the type of cursorNumfrom*big.Inttouint64to avoid unnecessary conversion frombig.Inttouint64.
- Remove an infeasible check in retrieveHeaderInfoas the case is already handled byHeaderByNumber.
Which issues(s) does this PR fix?
N/A
Other notes for review