aion

package
v1.8.17 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package aion handles artemis specific functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServices

func GetServices() []services.Service

GetServices returns the services which are used by artemis

Types

type AConf

type AConf struct {
	CorsEnabled    bool   `xml:"corsEnabled" json:"corsEnabled"`
	SecureConnect  bool   `xml:"secureConnect" json:"secureConnect"`
	NRGDefault     int64  `xml:"nrgDefault" json:"nrgDefault"`
	NRGMax         int64  `xml:"nrgMax" json:"nrgMax"`
	OracleEnabled  bool   `xml:"oracleEnabled" json:"oracleEnabled"`
	BlocksQueueMax int64  `xml:"blocksQueueMax"` //TODO continue adding JSON tags
	ShowStatus     bool   `xml:"showStatus"`
	ShowStatistics bool   `xml:"showStatistics"`
	CompactEnabled bool   `xml:"compactEnabled"`
	SlowImport     int64  `xml:"slowImport"`
	Frequency      int64  `xml:"frequency"`
	Mining         bool   `xml:"mining"`
	MineThreads    int64  `xml:"mineThreads"`
	ExtraData      string `xml:"extraData"`
	ClampedDecayUB int64  `xml:"clampedDecayUB"`
	ClampedDecayLB int64  `xml:"clampedDecayLB"`
	Database       string `xml:"database"`
	CheckIntegrity bool   `xml:"checkIntegrity"`
	StateStorage   string `xml:"stateStorage"`
	Vendor         string `xml:"vendor"`
	DBCompression  bool   `xml:"dbCompression"`
	LogFile        bool   `xml:"logFile"`
	LogPath        string `xml:"logPath"`
	GenLogs        string `xml:"genLogs"`
	VMLogs         string `xml:"vmLogs"`
	APILogs        string `xml:"apiLogs"`
	SyncLogs       string `xml:"syncLogs"`
	DBLogs         string `xml:"dbLogs"`
	ConsLogs       string `xml:"consLogs"`
	P2PLogs        string `xml:"p2plogs"`
	CacheMax       int64  `xml:"cacheMax"`

	InitBalance   string `json:"initBalance"`
	EnergyLimit   int64  `json:"energyLimit"`
	Nonce         int64  `json:"nonce"`
	Difficulty    int64  `json:"difficulty"`
	TimeStamp     int64  `json:"timeStamp"`
	ChainID       int64  `json:"chainId"`
	ExtraAccounts int64  `json:"extraAccounts"`
}

AConf represents the settings for the aion build

func NewAionConf

func NewAionConf(data map[string]interface{}) (*AConf, error)

NewAionConf creates the configuration for aion

Jump to

Keyboard shortcuts

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