mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
core/vm: rename function
This commit is contained in:
parent
3932b1ca35
commit
c059d53435
1 changed files with 3 additions and 3 deletions
|
|
@ -480,8 +480,8 @@ func modexpIterationCount(expLen uint64, expHead uint256.Int, multiplier uint64)
|
||||||
return max(iterationCount, 1)
|
return max(iterationCount, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// byzantiumGasCalc calculates the gas cost for the modexp precompile using Byzantium rules.
|
// byzantiumModexpGas calculates the gas cost for the modexp precompile using Byzantium rules.
|
||||||
func byzantiumGasCalc(baseLen, expLen, modLen uint64, expHead uint256.Int) uint64 {
|
func byzantiumModexpGas(baseLen, expLen, modLen uint64, expHead uint256.Int) uint64 {
|
||||||
const (
|
const (
|
||||||
multiplier = 8
|
multiplier = 8
|
||||||
divisor = 20
|
divisor = 20
|
||||||
|
|
@ -595,7 +595,7 @@ func (c *bigModExp) RequiredGas(input []byte) uint64 {
|
||||||
} else if c.eip2565 {
|
} else if c.eip2565 {
|
||||||
return berlinModexpGas(baseLen, expLen, modLen, expHead)
|
return berlinModexpGas(baseLen, expLen, modLen, expHead)
|
||||||
} else {
|
} else {
|
||||||
return byzantiumGasCalc(baseLen, expLen, modLen, expHead)
|
return byzantiumModexpGas(baseLen, expLen, modLen, expHead)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue