Skip to content

Commit

Permalink
Hide debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
starsquidnodes committed Jun 5, 2024
1 parent ca49020 commit 222fed0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pond/chain/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (n *Node) Init(namespace string, amount int) error {
if err == nil {
break
}
n.logger.Info().Msg("wait genesis.json")
n.logger.Debug().Msg("wait genesis.json")
time.Sleep(time.Millisecond * 200)
}
if err != nil {
Expand All @@ -173,6 +173,10 @@ func (n *Node) Init(namespace string, amount int) error {
return err
}

// updating the genesis file takes a little bit, so sleep 100ms
// to ensure the address is found and prevent sleeping once for 500ms
time.Sleep(time.Millisecond * 100)

for i := 0; i < 5; i++ {
data, err := os.ReadFile(fmt.Sprintf("%s/config/genesis.json", n.Home))
if err != nil {
Expand All @@ -183,7 +187,7 @@ func (n *Node) Init(namespace string, amount int) error {
break
}

n.logger.Info().Msg("wait for genesis account")
n.logger.Debug().Msg("wait for genesis account")
time.Sleep(time.Millisecond * 500)
}

Expand Down

0 comments on commit 222fed0

Please sign in to comment.