diff --git a/finality-provider/service/rpcserver.go b/finality-provider/service/rpcserver.go index a377903..9a0f3f4 100644 --- a/finality-provider/service/rpcserver.go +++ b/finality-provider/service/rpcserver.go @@ -77,7 +77,7 @@ func (r *rpcServer) RegisterWithGrpcServer(grpcServer *grpc.Server) error { func (r *rpcServer) GetInfo(context.Context, *proto.GetInfoRequest) (*proto.GetInfoResponse, error) { return &proto.GetInfoResponse{ - Version: version.Version(), + Version: version.VersionRpc(), }, nil } diff --git a/version/version.go b/version/version.go index da427b3..e4fcfe3 100644 --- a/version/version.go +++ b/version/version.go @@ -5,6 +5,7 @@ package version import ( + "fmt" "runtime/debug" ) @@ -38,3 +39,8 @@ func CommitInfo() (hash string, timestamp string) { func Version() string { return version } + +func VersionRpc() string { + commit, ts := CommitInfo() + return fmt.Sprintf("version: %s, commit: %s, timestamp: %s ", version, commit, ts) +}