mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Fix linting issue: remove unnecessary type conversion
This commit is contained in:
parent
ad8884cac5
commit
0bfcdcdee1
1 changed files with 1 additions and 1 deletions
|
|
@ -1447,7 +1447,7 @@ func findMergeBlock(ctx *cli.Context, db ethdb.Database) (uint64, error) {
|
|||
}))
|
||||
|
||||
// Check if we found a valid merge block
|
||||
if mergeBlock < uint64(*headNumber) {
|
||||
if mergeBlock < *headNumber {
|
||||
header := rawdb.ReadHeader(db, rawdb.ReadCanonicalHash(db, mergeBlock), mergeBlock)
|
||||
if header != nil && header.Difficulty.Sign() == 0 {
|
||||
found = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue