From c8bd133b868bf419e376c709c6f6486573ac5c8d Mon Sep 17 00:00:00 2001 From: Shubham Prajapati Date: Tue, 10 Dec 2024 22:46:02 +0530 Subject: [PATCH] `Remove SOON Solana node creation logic` This commit removes the SOON Solana node creation logic from the `CreateNodeStatus` function. --- util/pkg/node/node.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/util/pkg/node/node.go b/util/pkg/node/node.go index 5727646..f8f9804 100644 --- a/util/pkg/node/node.go +++ b/util/pkg/node/node.go @@ -6,7 +6,6 @@ import ( "os" "unicode" - soon_solana "github.com/NetSepio/erebrus/blockchain/solana/soon" "github.com/NetSepio/erebrus/core" "github.com/NetSepio/erebrus/util/pkg/speedtest" "github.com/sirupsen/logrus" @@ -146,21 +145,6 @@ func CreateNodeStatus(address string, id string, startTimeStamp int64, name stri IpGeoData: ToJSON(IpGeoAddress), } - if os.Getenv("CHAIN_NAME") == "SOON" { - - peaqDid, _, _ := core.GeneratePeaqDID(23) - - soon_solana.SoonNodeCreation(soon_solana.NodeDetails{ - PrivateKey: os.Getenv("SOON_PRIVATE_KEY"), - PeaqDid: peaqDid, - NodeName: name, - IPAddress: ToJSON(GetOSInfo()), - ISPInfo: ToJSON(GetIPInfo()), - Region: core.GlobalIPInfo.Country, - Location: ToJSON(IpGeoAddress), - }) - } - return nodeStatus }