Merge pull request #36 from deep-stack/ng-gql-get-status

Fix GQL query getStatus
This commit is contained in:
Sai Kumar 2022-04-26 16:29:16 +05:30 committed by GitHub
commit de5fc87573
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,15 +2,16 @@ package gql
import (
"context"
"github.com/cosmos/cosmos-sdk/client"
"os"
"os/exec"
"strconv"
"strings"
"github.com/cosmos/cosmos-sdk/client"
)
// NodeDataPath is the path to the ethermintd data folder.
var NodeDataPath = os.ExpandEnv("$HOME/.ethermintd/data")
// NodeDataPath is the path to the chibaclonkd data folder.
var NodeDataPath = os.ExpandEnv("$HOME/.chibaclonkd/data")
func getStatusInfo(client client.Context) (*NodeInfo, *SyncInfo, *ValidatorInfo, error) {
nodeClient, err := client.GetNode()