Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ForTest = NewFactory(params.TestChainConfig) ForTestnet = NewFactory(params.TestnetChainConfig) ForMainnet = NewFactory(params.MainnetChainConfig) ForPangaea = NewFactory(params.PangaeaChainConfig) ForPartner = NewFactory(params.PartnerChainConfig) ForStressnet = NewFactory(params.StressnetChainConfig) )
Factories corresponding to well-known chain configurations.
Functions ¶
func NewTestHeader ¶
NewTestHeader creates a new, empty header object for epoch 0 using the test factory. Use for unit tests.
Types ¶
type Factory ¶
type Factory interface { // NewHeader creates a new, empty header object for the given epoch. NewHeader(epoch *big.Int) *block.Header }
Factory is a data structure factory for a specific chain configuration.
func NewFactory ¶
func NewFactory(chainConfig *params.ChainConfig) Factory
NewFactory creates a new factory for the given chain configuration.
Click to show internal directories.
Click to hide internal directories.