mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
correct func name
`callGas` should be `calcGas` as in the comment
This commit is contained in:
parent
01d92531ee
commit
8f1afef5fb
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ const (
|
||||||
//
|
//
|
||||||
// The cost of gas was changed during the homestead price change HF.
|
// The cost of gas was changed during the homestead price change HF.
|
||||||
// As part of EIP 150 (TangerineWhistle), the returned gas is gas - base * 63 / 64.
|
// As part of EIP 150 (TangerineWhistle), the returned gas is gas - base * 63 / 64.
|
||||||
func callGas(isEip150 bool, availableGas, base uint64, callCost *big.Int) (uint64, error) {
|
func calcGas(isEip150 bool, availableGas, base uint64, callCost *big.Int) (uint64, error) {
|
||||||
if isEip150 {
|
if isEip150 {
|
||||||
availableGas = availableGas - base
|
availableGas = availableGas - base
|
||||||
gas := availableGas - availableGas/64
|
gas := availableGas - availableGas/64
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue