genesis

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	AppendBlock(*monomer.Block) error
	UpdateLabels(unsafe, safe, finalized common.Hash) error
}

type Genesis

type Genesis struct {
	Time     uint64                     `json:"time"`
	ChainID  monomer.ChainID            `json:"chain_id"`
	AppState map[string]json.RawMessage `json:"app_state"`
}

func (*Genesis) Commit

func (g *Genesis) Commit(ctx context.Context, app monomer.Application, blockStore DB, ethstatedb state.Database) error

Commit assumes the application has not been initialized and that the block store is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL