configs

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//
	TokenTCESS = 1000000000000000000
	// the time to wait for the event, in seconds
	TimeToWaitEvent = time.Duration(time.Second * 30)
	// default config file
	DefaultConfigFile = "conf.yaml"
	//
	DefaultWorkspace = "/"
	//
	DefaultServicePort = 15001
	//
	DefaultRpcAddr = "wss://testnet-rpc.cess.network/ws/"
	//
	MinTagFileSize = 600000
	//
	FileMode = 0755
)
View Source
const (
	Err_tee_Busy         = "is being fully calculated"
	Err_ctx_exceeded     = "context deadline exceeded"
	Err_file_not_fount   = "no such file"
	Err_miner_not_exists = "the miner not exists"
)
View Source
const (
	DevNet  = "devnet"
	TestNet = "testnet"
	MainNet = "mainnet"
)
View Source
const (
	DefaultGW1 = "https://deoss-sgp.cess.network"
	DefaultGW2 = "https://deoss-sv.cess.network"
	DefaultGW3 = "https://deoss-fra.cess.network"
)
View Source
const (
	// Name is the name of the program
	Name = "miner"
	// version
	Version = "v0.8.2 2502181401-1739858489666"
	// Description is the description of the program
	Description = "Storage miner implementation in CESS networks"
	// NameSpace is the cached namespace
	NameSpaces = Name
)

Variables

View Source
var ChainVersionInt = [3]int{0, 7, 9}
View Source
var ChainVersionStr = [3]string{"0", "7", "9"}

Chain version

View Source
var GlobalTransport = &http.Transport{
	DisableKeepAlives: true,
}

Functions

func RunOnLinuxSystem

func RunOnLinuxSystem() bool

func SetCpuNumber

func SetCpuNumber(cpus uint32) int

func SysInit

func SysInit(cpus uint32) int

system init

Types

This section is empty.

Jump to

Keyboard shortcuts

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