mirror of
https://github.com/luxfi/coreth.git
synced 2026-10-30 17:00:51 +00:00
37 lines
1.3 KiB
Go
37 lines
1.3 KiB
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package atomicgas
|
|
|
|
const (
|
|
// BlockGasCostStep is the rate at which the block gas cost changes per
|
|
// second.
|
|
//
|
|
// This value modifies the previously used `blockgascost.BlockGasCostStep`.
|
|
BlockGasCostStep = 200_000
|
|
|
|
// TargetGas is the target amount of gas to be included in the window. The
|
|
// target amount of gas per second equals [TargetGas] / `dynamicfee.WindowLen`.
|
|
//
|
|
// This value modifies the previously used `dynamicfee.TargetGas`.
|
|
TargetGas = 15_000_000
|
|
|
|
// BaseFeeChangeDenominator is the denominator used to smoothen base fee
|
|
// changes.
|
|
//
|
|
// This value modifies the previously used `dynamicfee.BaseFeeChangeDenominator`.
|
|
BaseFeeChangeDenominator = 36
|
|
|
|
// AtomicGasLimit specifies the maximum amount of gas that can be consumed
|
|
// by the atomic transactions included in a block.
|
|
//
|
|
// transactions where the cumulative atomic gas consumed is capped by the
|
|
// atomic gas limit, similar to the block gas limit.
|
|
AtomicGasLimit = 100_000
|
|
|
|
// AtomicTxIntrinsicGas is the base amount of gas to charge per atomic
|
|
// transaction. There are additional gas costs that can be charged per
|
|
// transaction.
|
|
AtomicTxIntrinsicGas = 10_000
|
|
)
|