From e468dc6d3a58b4540c275da8174c885c99500840 Mon Sep 17 00:00:00 2001 From: Rushikesh Nimkar Date: Sat, 6 Jul 2024 15:36:42 +0530 Subject: [PATCH] struct fix --- util/pkg/node/node.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/pkg/node/node.go b/util/pkg/node/node.go index 6f12fb3..f8f9804 100644 --- a/util/pkg/node/node.go +++ b/util/pkg/node/node.go @@ -65,7 +65,7 @@ type NodeStatus struct { UploadSpeed float64 `json:"uploadSpeed"` RegistrationTime int64 `json:"registrationTime"` //StartTimeStamp LastPing int64 `json:"lastPing"` - ChainName string `json:"chainName"` + Chain string `json:"chainName"` WalletAddress string `json:"walletAddress"` Version string `json:"version"` CodeHash string `json:"codeHash"` @@ -137,7 +137,7 @@ func CreateNodeStatus(address string, id string, startTimeStamp int64, name stri RegistrationTime: startTimeStamp, Name: name, WalletAddress: core.WalletAddress, - ChainName: core.ChainName, + Chain: core.ChainName, Version: "v1", CodeHash: "xxxxxxxxxxxxx", SystemInfo: ToJSON(GetOSInfo()),