mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-15 19:31:37 +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
|
tokenCost uint64
|
||||||
)
|
)
|
||||||
if rules.IsAmsterdam {
|
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.
|
// From 10/40 to 64/64 for zero/non-zero bytes.
|
||||||
tokens = uint64(len(data)) * params.TxTokenPerNonZeroByte
|
tokens = uint64(len(data)) * params.TxTokenPerNonZeroByte
|
||||||
tokenCost = params.TxCostFloorPerToken7976
|
tokenCost = params.TxCostFloorPerToken7976
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue