mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 18:01:36 +00:00
core: remove unused method and delete claude comment
This commit is contained in:
parent
fb6a02aa81
commit
03d4efd8df
2 changed files with 1 additions and 8 deletions
|
|
@ -132,12 +132,6 @@ func (gp *GasPool) Set(other *GasPool) {
|
|||
gp.cumulativeState = other.cumulativeState
|
||||
}
|
||||
|
||||
// AmsterdamDimensions returns the per-dimension cumulative gas values
|
||||
// for 2D gas accounting (EIP-8037).
|
||||
func (gp *GasPool) AmsterdamDimensions() (regular, state uint64) {
|
||||
return gp.cumulativeRegular, gp.cumulativeState
|
||||
}
|
||||
|
||||
func (gp *GasPool) String() string {
|
||||
return fmt.Sprintf("initial: %d, remaining: %d, cumulative used: %d", gp.initial, gp.remaining, gp.cumulativeUsed)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -203,8 +203,7 @@ func MakeReceipt(evm *vm.EVM, result *ExecutionResult, statedb *state.StateDB, b
|
|||
}
|
||||
receipt.TxHash = tx.Hash()
|
||||
|
||||
// GasUsed = max(tx_gas_used - gas_refund, calldata_floor_gas_cost), unchanged
|
||||
// in the Amsterdam fork.
|
||||
// GasUsed = max(tx_gas_used - gas_refund, calldata_floor_gas_cost)
|
||||
receipt.GasUsed = result.UsedGas
|
||||
|
||||
if tx.Type() == types.BlobTxType {
|
||||
|
|
|
|||
Loading…
Reference in a new issue