diff --git a/blockchainexp/reactor_fsm.go b/blockchainexp/reactor_fsm.go index 3da45d5e..4814906b 100644 --- a/blockchainexp/reactor_fsm.go +++ b/blockchainexp/reactor_fsm.go @@ -91,7 +91,7 @@ func (msg *bcReactorMessage) String() string { case statusResponseEv: dataStr = fmt.Sprintf("peer=%v height=%v", msg.data.peerID, msg.data.height) case blockResponseEv: - dataStr = fmt.Sprintf("peer=%v block.height=%v lenght=%v", + dataStr = fmt.Sprintf("peer=%v block.height=%v length=%v", msg.data.peerID, msg.data.block.Height, msg.data.length) case processedBlockEv: dataStr = fmt.Sprintf("error=%v", msg.data.err) @@ -103,10 +103,8 @@ func (msg *bcReactorMessage) String() string { dataStr = fmt.Sprintf("peer: %v is being removed by the switch", msg.data.peerID) case stateTimeoutEv: dataStr = fmt.Sprintf("state=%v", msg.data.stateName) - default: dataStr = fmt.Sprintf("cannot interpret message data") - return "event unknown" } return fmt.Sprintf("%v: %v", msg.event, dataStr) diff --git a/config/config.go b/config/config.go index 921171df..bb86ba7c 100644 --- a/config/config.go +++ b/config/config.go @@ -64,7 +64,7 @@ type Config struct { RPC *RPCConfig `mapstructure:"rpc"` P2P *P2PConfig `mapstructure:"p2p"` Mempool *MempoolConfig `mapstructure:"mempool"` - FastSyncParams *FastSyncParamsConfig `mapstructure:"fastsyncp"` + FastSyncParams *FastSyncParamsConfig `mapstructure:"fastsync"` Consensus *ConsensusConfig `mapstructure:"consensus"` TxIndex *TxIndexConfig `mapstructure:"tx_index"` Instrumentation *InstrumentationConfig `mapstructure:"instrumentation"` diff --git a/config/toml.go b/config/toml.go index ee6a25ac..05912bcd 100644 --- a/config/toml.go +++ b/config/toml.go @@ -48,8 +48,7 @@ func EnsureRoot(rootDir string) { // XXX: this func should probably be called by cmd/tendermint/commands/init.go // alongside the writing of the genesis.json and priv_validator.json func writeDefaultConfigFile(configFilePath string) { - config := DefaultConfig() - WriteConfigFile(configFilePath, config) + WriteConfigFile(configFilePath, DefaultConfig()) } // WriteConfigFile renders config using the template and writes it to configFilePath.