Skip to content

Commit

Permalink
Merge pull request #641 from 0chain/fix/wallet-info
Browse files Browse the repository at this point in the history
Fix: add wallet information initialization
  • Loading branch information
dabasov authored Sep 1, 2024
2 parents 905b261 + b669b27 commit d241faa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ func initConfig() {
os.Exit(1)
}

// set wallet info along whether split key is used
err = zcncore.SetWalletInfo(walletJSON, false)
if err != nil {
fmt.Println("Error in wallet info initialization", err)
os.Exit(1)
}

// additional settings depending network latency
blockchain.SetMaxTxnQuery(cfg.MaxTxnQuery)
blockchain.SetQuerySleepTime(cfg.QuerySleepTime)
Expand Down

0 comments on commit d241faa

Please sign in to comment.