internal

package
v0.0.0-...-b67b0ca Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

InitConfig instantiates Cfg with defaults or environment variables

func PrintConfig

func PrintConfig()

PrintConfig prints the current configuration in an easy to read format

Types

type Configuration

type Configuration struct {
	SimulationDays                 uint32
	InitialNetworkHashPower        uint64 // Hashes per second
	LimitNetworkHashPowerPctChange int    // How much the network power can vary from the initial power
}

Configuration represents a configuration object

var Config Configuration

Cfg is a global Config instance

Jump to

Keyboard shortcuts

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