diff --git a/CHANGELOG.md b/CHANGELOG.md index 2faec6fd7..438a2a420 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## 0.10.2 (TBD) +## 0.10.2 (July 10, 2017) FEATURES: - Enable lower latency block commits by adding consensus reactor sleep durations and p2p flush throttle timeout to the config diff --git a/cmd/tendermint/commands/root_test.go b/cmd/tendermint/commands/root_test.go index 01d69bb62..ae0f38275 100644 --- a/cmd/tendermint/commands/root_test.go +++ b/cmd/tendermint/commands/root_test.go @@ -23,7 +23,8 @@ const ( ) // isolate provides a clean setup and returns a copy of RootCmd you can -// modify in the test cases +// modify in the test cases. +// NOTE: it unsets all TM* env variables. func isolate(cmds ...*cobra.Command) cli.Executable { os.Unsetenv("TMHOME") os.Unsetenv("TM_HOME") diff --git a/p2p/connection.go b/p2p/connection.go index f86a211d4..1d97d4559 100644 --- a/p2p/connection.go +++ b/p2p/connection.go @@ -21,7 +21,11 @@ const ( minWriteBufferSize = 65536 updateState = 2 * time.Second pingTimeout = 40 * time.Second - flushThrottle = 100 * time.Millisecond + + // flushThrottle used here as a default. + // overwritten by the user config. + // TODO: remove + flushThrottle = 100 * time.Millisecond defaultSendQueueCapacity = 1 defaultSendRate = int64(512000) // 500KB/s