Skip to content

Commit

Permalink
Remove SOON Solana node creation logic
Browse files Browse the repository at this point in the history
This commit removes the SOON Solana node creation logic from the `CreateNodeStatus` function.
  • Loading branch information
p-shubh committed Dec 10, 2024
1 parent f1d63e4 commit c8bd133
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions util/pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit c8bd133

Please sign in to comment.