mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
collect 2700 cache before enable read cache
This commit is contained in:
parent
d80f8f0612
commit
2ce17e99b4
1 changed files with 2 additions and 2 deletions
|
|
@ -888,8 +888,8 @@ func (c *Posv) Finalize(chain consensus.ChainReader, header *types.Header, state
|
|||
}
|
||||
}
|
||||
|
||||
if !c.EnableCache && c.BlockSigners.Len() >= 1800 {
|
||||
fmt.Println("EnableCache true")
|
||||
if !c.EnableCache && c.BlockSigners.Len() >= 2700 {
|
||||
fmt.Println("EnableCache true c.BlockSigners.Len()", c.BlockSigners.Len())
|
||||
c.EnableCache = true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue