Documentation
¶
Overview ¶
blockgascost implements the block gas cost logic
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockGasCost ¶
func BlockGasCost( feeConfig commontype.FeeConfig, parentCost uint64, step uint64, timeElapsed uint64, ) uint64
BlockGasCost calculates the required block gas cost.
cost = parentCost + step * (TargetBlockRate - timeElapsed)
The returned cost is clamped to [MinBlockGasCost, MaxBlockGasCost].
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.