diff --git a/CHANGELOG.md b/CHANGELOG.md index 0397ebdb..46e9cb37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## v0.27.4 + +*December 21st, 2018* + +### BUG FIXES: + +- [mempool] [\#3036](https://github.com/tendermint/tendermint/issues/3036) Fix + LRU cache by popping the least recently used item when the cache is full, + not the most recently used one! + ## v0.27.3 *December 16th, 2018* diff --git a/mempool/mempool.go b/mempool/mempool.go index c5f966c4..3a1921bc 100644 --- a/mempool/mempool.go +++ b/mempool/mempool.go @@ -676,7 +676,7 @@ func (cache *mapTxCache) Push(tx types.Tx) bool { // Use the tx hash in the cache txHash := sha256.Sum256(tx) if moved, exists := cache.map_[txHash]; exists { - cache.list.MoveToFront(moved) + cache.list.MoveToBack(moved) return false } diff --git a/version/version.go b/version/version.go index ace1b41d..3cbdab02 100644 --- a/version/version.go +++ b/version/version.go @@ -18,7 +18,7 @@ const ( // TMCoreSemVer is the current version of Tendermint Core. // It's the Semantic Version of the software. // Must be a string because scripts like dist.sh read this file. - TMCoreSemVer = "0.27.3" + TMCoreSemVer = "0.27.4" // ABCISemVer is the semantic version of the ABCI library ABCISemVer = "0.15.0"