blockchain_parameters

package
v0.0.0-...-697f13e Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockGasLimit

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

func SpawnCheck

func SpawnCheck(runnerFactory func() (vm.EVMRunner, error))

SpawnCheck starts a goroutine that will periodically check the client's minimun version In case of not passing hte check it will exit the node

Types

This section is empty.

Jump to

Keyboard shortcuts

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