From d80f8f06126cf65315c99fc0f1462fd2a758115f Mon Sep 17 00:00:00 2001 From: Nguyen Sy Thanh Son Date: Thu, 3 Jan 2019 11:33:43 +0000 Subject: [PATCH] move ARC to normal cache --- consensus/posv/posv.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consensus/posv/posv.go b/consensus/posv/posv.go index 7c84ad88f2..065d524322 100644 --- a/consensus/posv/posv.go +++ b/consensus/posv/posv.go @@ -247,8 +247,8 @@ func New(config *params.PosvConfig, db ethdb.Database) *Posv { conf.Epoch = epochLength } // Allocate the snapshot caches and create the engine - BlockSigners, _ := lru.NewARC(blockSignersCacheLimit) - Votes, _ := lru.NewARC(votingCacheLimit) + BlockSigners, _ := lru.New(blockSignersCacheLimit) + Votes, _ := lru.New(votingCacheLimit) recents, _ := lru.NewARC(inmemorySnapshots) signatures, _ := lru.NewARC(inmemorySnapshots) validatorSignatures, _ := lru.NewARC(inmemorySnapshots)