genesis

package
v0.0.0-...-f0b25c7 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package genesis maintains access to the genesis file.

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"`
}

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