backport ci migration (#5758)

backport ci migration from circle to github actions
This commit is contained in:
Marko
2020-12-09 15:59:57 +01:00
committed by GitHub
parent 37010ad5b2
commit 5359e9fed3
23 changed files with 514 additions and 2019 deletions
+2 -2
View File
@@ -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)
}
}