mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 22:44:24 +00:00
committed by
Anton Kaliaev
parent
aa5495f24e
commit
26aa978456
+2
-1
@@ -577,7 +577,8 @@ func (cache *mapTxCache) Push(tx types.Tx) bool {
|
||||
|
||||
// Use the tx hash in the cache
|
||||
txHash := sha256.Sum256(tx)
|
||||
if _, exists := cache.map_[txHash]; exists {
|
||||
if moved, exists := cache.map_[txHash]; exists {
|
||||
cache.list.MoveToFront(moved)
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user