Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 17db9f3

Browse files
kangsorangsm-stack
authored andcommitted
temporary non-application of gas penalty logic
1 parent c5542ae commit 17db9f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/state_processor_rip7560.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ func ApplyRip7560ExecutionPhase(config *params.ChainConfig, vpr *ValidationPhase
401401
// apply a penalty && refund gas
402402
// TODO: If this value is not persistent, it should be modified to be managed on-chain config
403403
const UNUSED_GAS_PENALTY_PERCENT = 10
404-
gasPenalty := (prepaidGas.Uint64() - cumulativeGasUsed) * UNUSED_GAS_PENALTY_PERCENT / 100
404+
//gasPenalty := (prepaidGas.Uint64() - cumulativeGasUsed) * UNUSED_GAS_PENALTY_PERCENT / 100
405+
var gasPenalty uint64 = 0
405406
cumulativeGasUsed += gasPenalty
406407
statedb.AddBalance(*payment, uint256.NewInt((prepaidGas.Uint64()-cumulativeGasUsed)*evm.Context.BaseFee.Uint64()))
407408
gp.AddGas(prepaidGas.Uint64() - cumulativeGasUsed)

0 commit comments

Comments
 (0)