fork

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 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

func ClearHardForkBlockNumberConfig()

ClearHardForkBlockNumberConfig sets nil Use only in tests

func Rules

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

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

func SetHardForkBlockNumberConfig

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