mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-13 15:33:47 +00:00
Explicitly disable MVHashMap in mining
Currently, we determine if MVHashMap should be enabled by checking the block number with parallelUniverse flag in genesis, which has a value of 0. Some headers' block number is 0, so MVHashMap was enabled, which led to a few errors. Disable this flag explicitly until we figure out a proper hardfork solution.
This commit is contained in:
parent
745c32e637
commit
39ed6e47a4
1 changed files with 1 additions and 7 deletions
|
|
@ -986,13 +986,7 @@ func (w *worker) commitTransactions(env *environment, txs *types.TransactionsByP
|
||||||
|
|
||||||
var depsWg sync.WaitGroup
|
var depsWg sync.WaitGroup
|
||||||
|
|
||||||
var EnableMVHashMap bool
|
EnableMVHashMap := false
|
||||||
|
|
||||||
if w.chainConfig.Bor.IsParallelUniverse(env.header.Number) {
|
|
||||||
EnableMVHashMap = true
|
|
||||||
} else {
|
|
||||||
EnableMVHashMap = false
|
|
||||||
}
|
|
||||||
|
|
||||||
// create and add empty mvHashMap in statedb
|
// create and add empty mvHashMap in statedb
|
||||||
if EnableMVHashMap {
|
if EnableMVHashMap {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue