hfcache

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HfNameLenght = 32
)

Variables

This section is empty.

Functions

func AddHardfork

func AddHardfork(hardfork *Hardfork)

AddActiveHardfork adds a new active hardfork

func IsHardforkActive

func IsHardforkActive(hardforkName string, blockNum uint64) bool

IsHardforkActive checks if given hardfork is active

func RemoveHardfork

func RemoveHardfork(hfName string)

RemoveActiveHardfork removes hardfork

Types

type Hardfork

type Hardfork struct {
	Name        string   `json:"name"`
	BlockNumber *big.Int `json:"block_number"`
}

HardforkInfo defines the hardfork payload information returned.

type HardforkCache

type HardforkCache struct {
	// contains filtered or unexported fields
}

HardforkCache caches currently active hardforks

Jump to

Keyboard shortcuts

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