Closed gzliudan closed 1 week ago
It doesn't matter now because the fork block have passed, but minor nitpick: the condition is not exactly the same because in precompile2 it is && condition while in IsIstanbul it is || condition.
func (c *ChainConfig) IsIstanbul(num *big.Int) bool { return isForked(common.TIPXDCXCancellationFee, num) || isForked(c.IstanbulBlock, num) }
The old version is:
func (c *ChainConfig) IsIstanbul(num *big.Int) bool {
return isForked(common.TIPXDCXCancellationFee, num)
}
I change it to:
return isForked(common.TIPXDCXCancellationFee, num) || isForked(c.IstanbulBlock, num)
for other purpose in a PR ago.
Proposed changes
This PR replaces function
precompile2
withprecompile
:The conditions
evm.chainRules.IsIstanbul
andevm.ChainConfig().IsTIPXDCXCancellationFee(evm.BlockNumber)
are same because:Types of changes
What types of changes does your code introduce to XDC network? Put an
✅
in the boxes that applyImpacted Components
Which part of the codebase this PR will touch base on,
Put an
✅
in the boxes that applyChecklist
Put an
✅
in the boxes once you have confirmed below actions (or provide reasons on not doing so) that