mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
fix: return value for no remote block
This commit is contained in:
parent
01117acbcc
commit
2b089ee6d3
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ func (w *Service) IsValidChain(remoteHeader *types.Header, fetchHeadersByNumber
|
|||
}
|
||||
|
||||
if len(headers) == 0 {
|
||||
return true, fmt.Errorf("%w: last checkpoint %d", ErrNoRemoteCheckoint, lastCheckpointBlockNum)
|
||||
return false, fmt.Errorf("%w: last checkpoint %d", ErrNoRemoteCheckoint, lastCheckpointBlockNum)
|
||||
}
|
||||
|
||||
reqBlockNum := headers[0].Number.Uint64()
|
||||
|
|
|
|||
Loading…
Reference in a new issue