move ARC to normal cache

This commit is contained in:
Nguyen Sy Thanh Son 2019-01-03 11:33:43 +00:00
parent 53861bdcfd
commit d80f8f0612

View file

@ -247,8 +247,8 @@ func New(config *params.PosvConfig, db ethdb.Database) *Posv {
conf.Epoch = epochLength conf.Epoch = epochLength
} }
// Allocate the snapshot caches and create the engine // Allocate the snapshot caches and create the engine
BlockSigners, _ := lru.NewARC(blockSignersCacheLimit) BlockSigners, _ := lru.New(blockSignersCacheLimit)
Votes, _ := lru.NewARC(votingCacheLimit) Votes, _ := lru.New(votingCacheLimit)
recents, _ := lru.NewARC(inmemorySnapshots) recents, _ := lru.NewARC(inmemorySnapshots)
signatures, _ := lru.NewARC(inmemorySnapshots) signatures, _ := lru.NewARC(inmemorySnapshots)
validatorSignatures, _ := lru.NewARC(inmemorySnapshots) validatorSignatures, _ := lru.NewARC(inmemorySnapshots)