mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +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 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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue