Skip to content

Commit

Permalink
Remove info log for TimeoutPropose override (dydxprotocol#1881)
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyding authored Jul 10, 2024
1 parent 3161af0 commit 3cececf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions protocol/cmd/dydxprotocold/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cmd

import (
"errors"
"fmt"
"io"
"os"
"path/filepath"
Expand Down Expand Up @@ -68,17 +67,12 @@ func NewRootCmd(
option *RootCmdOption,
homeDir string,
) *cobra.Command {
logger := log.NewLogger(os.Stdout)
return NewRootCmdWithInterceptors(
option,
homeDir,
func(serverCtxPtr *server.Context) {
// Provide an override for `timeout_propose`. This value should be consistent across the network
// for synchrony, and should never be tweaked by individual validators in practice.
logger.Info(fmt.Sprintf(
"Overriding [consensus.timeout_propose] from %v to software constant: %v",
serverCtxPtr.Config.Consensus.TimeoutPropose,
TimeoutProposeOverride))
serverCtxPtr.Config.Consensus.TimeoutPropose = TimeoutProposeOverride
},
func(s string, appConfig *DydxAppConfig) (string, *DydxAppConfig) {
Expand Down

0 comments on commit 3cececf

Please sign in to comment.