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:
Jerry 2023-06-08 14:05:29 -07:00
parent 745c32e637
commit 39ed6e47a4
No known key found for this signature in database
GPG key ID: 5B33FA23CB103211

View file

@ -986,13 +986,7 @@ func (w *worker) commitTransactions(env *environment, txs *types.TransactionsByP
var depsWg sync.WaitGroup
var EnableMVHashMap bool
if w.chainConfig.Bor.IsParallelUniverse(env.header.Number) {
EnableMVHashMap = true
} else {
EnableMVHashMap = false
}
EnableMVHashMap := false
// create and add empty mvHashMap in statedb
if EnableMVHashMap {