dir : cmd/utils/flags.go
light sync라면..
if cfg.SyncMode == downloader.LightSync {
backend, err := les.New(stack, cfg)
...
stack.RegisterAPIs(tracers.APIs(backend.ApiBackend))
...
return backend.ApiBackend, nil
}
light sync가 아닐 경우
새로운 ethereum 인스턴스 생성
backend, err := eth.New(stack, cfg)
// dir : eth/backend.go