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
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.
Click to show internal directories.
Click to hide internal directories.