configs

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 8 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 = 4001
	//
	DefaultRpcAddr1 = "wss://testnet-rpc0.cess.cloud/ws/"
	DefaultRpcAddr2 = "wss://testnet-rpc1.cess.cloud/ws/"
	//
	DefaultBootNodeAddr = "_dnsaddr.boot-bucket-testnet.cess.cloud"
	//
	DefaultDeossAddr = "http://deoss-pub-gateway.cess.cloud/"

	//
	MinMTagFileSize = 600000
)
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 (
	DbDir            = "db"
	LogDir           = "log"
	SpaceDir         = "space"
	PoisDir          = "pois"
	AccDir           = "acc"
	RandomDir        = "random"
	PeersFile        = "peers"
	Podr2PubkeyFile  = ".podr2pubkey"
	IdleProofFile    = "idleproof"
	ServiceProofFile = "serviceproof"
)
View Source
const (
	// Name is the name of the program
	Name = "bucket"
	// version
	Version = "v0.7.10"
	// Description is the description of the program
	Description = "Storage node implementation in CESS networks"
	// NameSpace is the cached namespace
	NameSpaces = Name
	// Chain version
	ChainVersion = "0.7.6"
)

Variables

This section is empty.

Functions

func GetCert added in v0.7.9

func RunOnLinuxSystem added in v0.6.0

func RunOnLinuxSystem() bool

func SetCpuNumber added in v0.7.6

func SetCpuNumber(cpus uint8) int

func SysInit added in v0.6.0

func SysInit(cpus uint8) 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