beacon: error strings should not be capitalized

This commit is contained in:
wit 2025-11-09 10:06:39 +08:00
parent 447b5f7e19
commit 0ad188cf39

View file

@ -411,7 +411,7 @@ func (api *BeaconLightApi) GetBeaconBlock(blockRoot common.Hash) (*types.BeaconB
}
computedRoot := block.Root()
if computedRoot != blockRoot {
return nil, fmt.Errorf("Beacon block root hash mismatch (expected: %x, got: %x)", blockRoot, computedRoot)
return nil, fmt.Errorf("beacon block root hash mismatch (expected: %x, got: %x)", blockRoot, computedRoot)
}
return block, nil
}