mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-12 02:56:21 +00:00
backport ci migration (#5758)
backport ci migration from circle to github actions
This commit is contained in:
@@ -678,9 +678,9 @@ func (cache *mapTxCache) Push(tx types.Tx) bool {
|
||||
|
||||
if cache.list.Len() >= cache.size {
|
||||
popped := cache.list.Front()
|
||||
poppedTxHash := popped.Value.([sha256.Size]byte)
|
||||
delete(cache.map_, poppedTxHash)
|
||||
if popped != nil {
|
||||
poppedTxHash := popped.Value.([sha256.Size]byte)
|
||||
delete(cache.map_, poppedTxHash)
|
||||
cache.list.Remove(popped)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user