fork

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package fork has information related to hard forks.

HardForkConfig which has hard fork blockNumbers is declared in this package.

Source Files

- fork.go : Declare HardForkConfig

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearHardForkBlockNumberConfig added in v1.7.0

func ClearHardForkBlockNumberConfig()

ClearHardForkBlockNumberConfig sets nil Use only in tests

func Rules added in v1.7.0

func Rules(blockNumber *big.Int) *params.Rules

Rules returns the hard fork information CAUTIOUS: Use it when chainConfig value is not reachable

func SetHardForkBlockNumberConfig added in v1.7.0

func SetHardForkBlockNumberConfig(h *params.ChainConfig) error

SetHardForkBlockNumberConfig sets values in HardForkConfig if it is not nil. CAUTIOUS: Calling this function is can be dangerous, so avoid using it except tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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