mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +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
|
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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue