mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
core/vm: implement updates to modexp gas cost changes in eip 7883
This commit is contained in:
parent
c7e6c08e54
commit
7f563197fd
1 changed files with 2 additions and 0 deletions
|
|
@ -459,6 +459,8 @@ func (c *bigModExp) RequiredGas(input []byte) uint64 {
|
||||||
minPrice = 500
|
minPrice = 500
|
||||||
if maxLenOver32 {
|
if maxLenOver32 {
|
||||||
gas.Add(gas, gas)
|
gas.Add(gas, gas)
|
||||||
|
} else {
|
||||||
|
gas = big.NewInt(16)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue