mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
fixed MVHashMap being enabled even when paralellUniverse is set to 0 (#900)
This commit is contained in:
parent
891ec7fef6
commit
d5b6672c2f
1 changed files with 4 additions and 2 deletions
|
|
@ -637,8 +637,10 @@ func (c *BorConfig) CalculateStateSyncDelay(number uint64) uint64 {
|
|||
|
||||
// TODO: modify this function once the block number is finalized
|
||||
func (c *BorConfig) IsParallelUniverse(number *big.Int) bool {
|
||||
if c.ParallelUniverseBlock == big.NewInt(0) {
|
||||
return false
|
||||
if c.ParallelUniverseBlock != nil {
|
||||
if c.ParallelUniverseBlock.Cmp(big.NewInt(0)) == 0 {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
return isForked(c.ParallelUniverseBlock, number)
|
||||
|
|
|
|||
Loading…
Reference in a new issue