mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
core/vm: implement updates to modexp gas cost changes in EIP-7883 (#32015)
Implements the updated gas cost changes introduced in
5cdd75157d
This commit is contained in:
parent
ece4b48d84
commit
e5da461f29
1 changed files with 2 additions and 0 deletions
|
|
@ -459,6 +459,8 @@ func (c *bigModExp) RequiredGas(input []byte) uint64 {
|
|||
minPrice = 500
|
||||
if maxLenOver32 {
|
||||
gas.Add(gas, gas)
|
||||
} else {
|
||||
gas = big.NewInt(16)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue