mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 01:41:36 +00:00
core: implement eip-7976: Increase Calldata Floor Cost
This commit is contained in:
parent
bb987df015
commit
5356ae0ca2
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ func FloorDataGas(rules params.Rules, data []byte) (uint64, error) {
|
|||
tokenCost uint64
|
||||
)
|
||||
if rules.IsAmsterdam {
|
||||
// EIP-7976 changes both how calldata is priced.
|
||||
// EIP-7976 changes how calldata is priced.
|
||||
// From 10/40 to 64/64 for zero/non-zero bytes.
|
||||
tokens = uint64(len(data)) * params.TxTokenPerNonZeroByte
|
||||
tokenCost = params.TxCostFloorPerToken7976
|
||||
|
|
|
|||
Loading…
Reference in a new issue