config

package
v0.0.0-...-967ad2c Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CubeCo = [27][]int{
	{2, 4, 10},
	{1, 3, 5, 11},
	{2, 6, 12},
	{1, 5, 7, 13},
	{2, 4, 6, 8, 14},
	{3, 5, 9, 15},
	{4, 8, 16},
	{5, 7, 9, 17},
	{8, 6, 18},
	{1, 11, 13, 19},
	{2, 10, 12, 14, 20},
	{3, 11, 15, 21},
	{4, 10, 16, 14, 22},
	{5, 11, 13, 15, 17, 23},
	{6, 12, 18, 14, 24},
	{7, 13, 17, 25},
	{8, 16, 18, 14, 26},
	{9, 15, 17, 27},
	{10, 20, 22},
	{11, 19, 20, 23},
	{12, 20, 24},
	{13, 19, 23, 25},
	{20, 22, 24, 14, 26},
	{15, 21, 23, 27},
	{16, 22, 26},
	{17, 23, 25, 27},
	{18, 24, 26},
}

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	/* Network/Node */
	Network   string `json:"network"`
	Nettype   string `json:"nettype"`
	Chaintype string `json:"chaintype"`
	Host      string `json:"host"`
	Port      int    `json:"port"`

	// RPC Port
	Rpcip    string `json:"rpcip"`
	Rpcport  int    `json:"rpcport"`
	Httpport int    `json:"httpport"`

	/* Cube Setting */
	Datafolder string `json:"datafolder"`
	Datanumber int    `json:"datanumber"`

	Blocktime  int   `json:"blocktime"`
	Number     []int `json:"number"`
	Pow        []int `json:"pow"`
	Maxnonce   int   `json:"maxnonce"`
	Zeronumber int   `json:"zeronumber"`

	Indexing   int `json:"indexing"`
	Statistics int `json:"statistics"`
	Escrow     int `json:"escrow"`
	Format     int `json:"format"`
	Edit       int `json:"edit"`

	/* Wallet */
	Address string `json:"address"`
	Keylen  int    `json:"keylen"`

	/* Password */
	Password int `json:"password"`

	MiningMode string `json:"miningmode"`
	MainServer string `json:"mainserver"`
	PoolServer string `json:"poolserver"`
	PosServer  string `json:"posserver"`
}

func LoadConfiguration

func LoadConfiguration(File string) Configuration

Jump to

Keyboard shortcuts

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