genesis

package
v0.0.0-...-491cd9a Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Genesis

type Genesis struct {
	Date          time.Time         `json:"date"`
	ChainID       uint16            `json:"chain_id"`
	TransPerBlock uint16            `json:"trans_per_block"`
	Difficulty    uint16            `json:"difficulty"`
	MiningReward  uint64            `json:"mining_reward"`
	GasPrice      uint64            `json:"gas_price"`
	Balances      map[string]uint64 `json:"balances"`
}

Genesis represents the genesis file.

func Load

func Load() (Genesis, error)

Load opens and consumes the genesis file.

Jump to

Keyboard shortcuts

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