Skip to content

Commit

Permalink
change IsTestMode (#2073)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottafk authored Nov 13, 2022
1 parent 2cc397c commit 775f0e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions packages/api/keyinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"encoding/json"
"net/http"

"github.com/IBAX-io/go-ibax/packages/conf/syspar"
"github.com/IBAX-io/go-ibax/packages/consts"
"github.com/IBAX-io/go-ibax/packages/converter"
"github.com/IBAX-io/go-ibax/packages/storage/sqldb"
Expand Down Expand Up @@ -108,7 +107,7 @@ func (m Mode) getKeyInfoHandler(w http.ResponseWriter, r *http.Request) {
}

// in test mode, registration is open in the first ecosystem
if len(keysList) == 0 && syspar.IsTestMode() {
if len(keysList) == 0 {
account = converter.AddressToString(keyID)
notify := make([]notifyInfo, 0)
notify = append(notify, notifyInfo{})
Expand Down
1 change: 0 additions & 1 deletion packages/api/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ func getNetworkHandler(w http.ResponseWriter, r *http.Request) {
jsonResponse(w, &NetworkResult{
NetworkID: converter.Int64ToStr(conf.Config.LocalConf.NetworkID),
CentrifugoURL: conf.Config.Centrifugo.URL,
Test: syspar.IsTestMode(),
Private: syspar.IsPrivateBlockchain(),
HonorNodes: GetNodesJSON(),
})
Expand Down

0 comments on commit 775f0e0

Please sign in to comment.