configs

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//success
	Code_200 = 200
	//bad request
	Code_400 = 400
	//forbidden
	Code_403 = 403
	//not found
	Code_404 = 404
	//server internal error
	Code_500 = 500
	//The block was produced but the event was not resolved
	Code_600 = 600
)

return code

View Source
const (
	SIZE_1KiB          = 1024
	SIZE_1MiB          = SIZE_1KiB * 1024 // 1MB
	SIZE_1GiB          = SIZE_1MiB * 1024
	FillerSize         = 8 * SIZE_1MiB
	TimeToWaitEvents_S = 20             //The time to wait for the event, in seconds
	TokenAccuracy      = "000000000000" //Unit precision of CESS coins
	ExitColling        = 28800          //blocks
	BlockSize          = 1024 * 1024    //1MB
	ScanBlockSize      = 512 * 1024     //512KB
	// the time to wait for the event, in seconds
	TimeToWaitEvents = time.Duration(time.Second * 15)
)
View Source
const (
	HELP_common = `Please check with the following help information:
    1.Check if the wallet balance is sufficient
    2.Block hash:`
	HELP_register = `` /* 214-byte string literal not displayed */

	HELP_UpdateAddress = `` /* 212-byte string literal not displayed */

	HELP_UpdataBeneficiary = `` /* 221-byte string literal not displayed */

)
View Source
const ConfigFile_Templete = `` /* 505-byte string literal not displayed */
View Source
const Version = "CESS-Bucket v0.5.3"

type and version

Variables

View Source
var (
	Spk           []byte
	Shared_params []byte
	Shared_g      []byte

	//data path
	BaseDir    = "bucket"
	LogfileDir = "/log"
	SpaceDir   = "space"
	FilesDir   = "files"
)

Miner info updated at runtime

View Source
var ConfFilePath string

Functions

This section is empty.

Types

type Confile

type Confile struct {
	RpcAddr      string `toml:"RpcAddr"`
	MountedPath  string `toml:"MountedPath"`
	StorageSpace uint64 `toml:"StorageSpace"`
	ServiceIP    string `toml:"ServiceIP"`
	ServicePort  uint32 `toml:"ServicePort"`
	IncomeAcc    string `toml:"IncomeAcc"`
	SignatureAcc string `toml:"SignatureAcc"`
	DomainName   string `toml:"DomainName"`
}

Jump to

Keyboard shortcuts

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