configs

package
v0.5.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// CESS token precision
	CESSTokenPrecision = 1_000_000_000_000
	// MinimumBalance is the minimum balance required for the program to run
	// The unit is pico
	MinimumBalance = 2 * CESSTokenPrecision
)

account

View Source
const (
	SIZE_1KiB = 1024
	SIZE_1MiB = 1024 * SIZE_1KiB
	SIZE_1GiB = 1024 * SIZE_1MiB
)

byte size

View Source
const (
	// FillerSize is the fill size of the uncommissioned data segment
	FillerSize = 8 * SIZE_1MiB
	// FillerLineLength is the number of characters in a line
	FillerLineLength = 4096
	// BlockSize is the block size when pbc is calculated
	BlockSize = SIZE_1MiB
	// ScanBlockSize is the size of the scan and cannot be larger than BlockSize
	ScanBlockSize = BlockSize / 2
	// The maximum number of fillermeta submitted in a transaction
	Max_SubFillerMeta = 8
	// Number of local filler caches
	Num_Filler_Reserved = 5

	Max_Filler_Meta = 50
	//
	WaitFillerTime = time.Duration(time.Second * 3)
)

filler

View Source
const (
	// Maximum number of connections in the miner's certification space
	MAX_TCP_CONNECTION uint8 = 3
	// Tcp client connection interval
	TCP_Connection_Interval = time.Duration(time.Millisecond * 100)
	// Tcp message interval
	TCP_Message_Interval = time.Duration(time.Millisecond * 10)
	// Tcp short message waiting time
	TCP_Time_WaitNotification = time.Duration(time.Second * 10)
	// Tcp short message waiting time
	TCP_FillerMessage_WaitingTime = time.Duration(time.Second * 150)
	// The slowest tcp transfers bytes per second
	TCP_Transmission_Slowest = SIZE_1KiB * 10
	// Number of tcp message caches
	TCP_Message_Send_Buffers = 10
	TCP_Message_Read_Buffers = 10
	//
	TCP_SendBuffer = SIZE_1KiB * 8
	TCP_ReadBuffer = SIZE_1KiB * 16
	//
	Tcp_Dial_Timeout = time.Duration(time.Second * 5)
)
View Source
const (
	// Time out waiting for transaction completion
	TimeOut_WaitBlock = time.Duration(time.Second * 15)
	// Submit fillermeta interval
	SubmitFillermetaInterval = 60
	// The maximum number of proof results submitted in a transaction
	Max_SubProofResults = 40
)
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 = `` /* 226-byte string literal not displayed */

	HELP_update = `` /* 220-byte string literal not displayed */

)

explanation

View Source
const (
	// Name is the name of the program
	Name = "cess-scheduler"
	// Description is the description of the program
	Description = "Implementation of Scheduling Service for Consensus Nodes"
	// NameSpace is the cached namespace
	NameSpace = "scheduler"
)
View Source
const (
	// BaseDir is the base directory where data is stored
	BaseDir = NameSpace
	// Data directory
	LogDir    = "log"
	CacheDir  = "cache"
	FileDir   = "file"
	TagDir    = "tag"
	FillerDir = "filler"
)
View Source
const (
	// BlockInterval is the time interval for generating blocks, in seconds
	BlockInterval = time.Second * time.Duration(6)
)
View Source
const Version = "cess-scheduler v0.5.3"

type and version

Variables

View Source
var (
	LogFiles = []string{
		"common",
		"upfile",
		"panic",
		"verify",
		"minerCache",
		"fillerMeta",
		"genFiller",
		"speed",
		"space",
	}
)

log file

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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