Documentation
¶
Index ¶
Constants ¶
View Source
const InitialFork = "initialfork"
Variables ¶
This section is empty.
Functions ¶
func ForkManagerInit ¶
func GetInstance ¶
func GetInstance() *forkManager
GeInstance returns fork manager singleton instance. Thread safe
Types ¶
type Fork ¶
type Fork struct {
// name of the fork
Name string
// after the fork is activated, `FromBlockNumber` shows from which block is enabled
FromBlockNumber uint64
// fork consensus parameters
Params *chain.ForkParams
// this value is false if fork is registered but not activated
IsActive bool
// map of all handlers registered for this fork
Handlers map[HandlerDesc]interface{}
}
Fork structure defines one fork
type HandlerDesc ¶
type HandlerDesc string
HandlerDesc gives description for the handler eq: "extra", "proposer_calculator", etc
Click to show internal directories.
Click to hide internal directories.