blockchain_parameters

package
v1.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultIntrinsicGasForAlternativeFeeCurrency = config.IntrinsicGasForAlternativeFeeCurrency

Variables

This section is empty.

Functions

func GetBlockGasLimit added in v1.7.1

func GetBlockGasLimit(vmRunner vm.EVMRunner) (uint64, error)

GetBlockGasLimit retrieves the block max gas limit

func GetBlockGasLimitOrDefault

func GetBlockGasLimitOrDefault(vmRunner vm.EVMRunner) uint64

GetBlockGasLimitOrDefault retrieves the block max gas limit In case of error, it returns the default value

func GetIntrinsicGasForAlternativeFeeCurrencyOrDefault

func GetIntrinsicGasForAlternativeFeeCurrencyOrDefault(vmRunner vm.EVMRunner) uint64

GetIntrinsicGasForAlternativeFeeCurrencyOrDefault retrieves the intrisic gas for transactions that pay gas in with an alternative currency (not CELO). In case of error, it returns the default value

func GetLookbackWindow

func GetLookbackWindow(vmRunner vm.EVMRunner) (uint64, error)

GetLookbackWindow retrieves the lookback window parameter to be used for uptime score computations

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL