erigon-pulse/cmd/rpcdaemon/commands/net_version.go
Evgeny Danilenko 3b40819444
grpc regenerate (#936)
* grpc regenerate

* use string type for id in net_version
2020-08-18 20:22:49 +03:00

15 lines
241 B
Go

package commands
import (
"context"
"strconv"
)
func (api *NetAPIImpl) Version(_ context.Context) (string, error) {
res, err := api.ethBackend.NetVersion()
if err != nil {
return "", err
}
return strconv.FormatUint(res, 10), nil
}