Skip to content

Commit

Permalink
check error
Browse files Browse the repository at this point in the history
  • Loading branch information
cam-schultz committed Mar 1, 2024
1 parent 7d7789c commit 0e54e63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions peers/app_request_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ func NewNetwork(
// Create the info client
infoClient := info.NewClient(InfoAPINodeURL)
networkID, err := infoClient.GetNetworkID(context.Background())
if err != nil {
logger.Error(
"Failed to get network ID",
zap.Error(err),
)
return nil, nil, err
}

if networkID != constants.MainnetID &&
networkID != constants.FujiID &&
Expand Down

0 comments on commit 0e54e63

Please sign in to comment.