mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
move ARC to normal cache
This commit is contained in:
parent
53861bdcfd
commit
d80f8f0612
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue