genesis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Address gethcommon.Address
	Amount  *big.Int
}

Account specifies the address that's prefunded and the amount it's funded with

type Genesis

type Genesis struct {
	Accounts []Account
}

Genesis holds a range of prefunded accounts

func New

func New(genesisJSON string) (*Genesis, error)

New creates a new Genesis given a json string if the string is empty it defaults to the testnet genesis

func (Genesis) CommitGenesisState

func (g Genesis) CommitGenesisState(storage storage.Storage) error

func (Genesis) GetGenesisRoot

func (g Genesis) GetGenesisRoot(storage storage.Storage) (*common.StateRoot, error)

Jump to

Keyboard shortcuts

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