Revert "core: update DAO soft-fork number, clean up the code"

This reverts commit ba784bdf36.
This commit is contained in:
Péter Szilágyi
2016-06-29 11:44:29 +03:00
parent 219859f8bb
commit 67e9d33486
10 changed files with 67 additions and 49 deletions

View File

@ -371,10 +371,5 @@ func CalcGasLimit(parent *types.Block) *big.Int {
gl.Add(parent.GasLimit(), decay)
gl.Set(common.BigMin(gl, params.TargetGasLimit))
}
// Temporary special case: if DAO rupture is requested, cap the gas limit
if DAOSoftFork && parent.NumberU64() <= ruptureBlock && gl.Cmp(ruptureTarget) > 0 {
gl.Sub(parent.GasLimit(), decay)
gl.Set(common.BigMax(gl, ruptureTarget))
}
return gl
}