blockchain_parameters

package
v0.5.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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. 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