|
@ -676,7 +676,7 @@ func (cache *mapTxCache) Push(tx types.Tx) bool { |
|
|
// Use the tx hash in the cache
|
|
|
// Use the tx hash in the cache
|
|
|
txHash := sha256.Sum256(tx) |
|
|
txHash := sha256.Sum256(tx) |
|
|
if moved, exists := cache.map_[txHash]; exists { |
|
|
if moved, exists := cache.map_[txHash]; exists { |
|
|
cache.list.MoveToFront(moved) |
|
|
|
|
|
|
|
|
cache.list.MoveToBack(moved) |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|