Documentation ¶
Index ¶
- func ReadChainConfig(db ethdb.KeyValueReader, hash common.Hash) *params.ChainConfig
- func ReadHeadHeader(db ethdb.Reader) *mivetypes.Header
- func ReadHeader(db ethdb.Reader, hash common.Hash, number uint64) *mivetypes.Header
- func WriteChainConfig(db ethdb.KeyValueWriter, hash common.Hash, cfg *params.ChainConfig)
- func WriteHeader(db ethdb.KeyValueWriter, header *mivetypes.Header)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadChainConfig ¶
func ReadChainConfig(db ethdb.KeyValueReader, hash common.Hash) *params.ChainConfig
ReadChainConfig retrieves the consensus settings based on the given genesis hash.
func ReadHeadHeader ¶
ReadHeadHeader returns the current canonical head header.
func ReadHeader ¶
ReadHeader retrieves the block header corresponding to the hash.
func WriteChainConfig ¶
func WriteChainConfig(db ethdb.KeyValueWriter, hash common.Hash, cfg *params.ChainConfig)
WriteChainConfig writes the chain config settings to the database.
func WriteHeader ¶
func WriteHeader(db ethdb.KeyValueWriter, header *mivetypes.Header)
WriteHeader stores a block header into the database and also stores the hash- to-number mapping.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.