sys

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagNop byte = iota
	TagTransfer
	TagContract
	TagStake
	TagBatch
)

Transaction tags.

View Source
const (
	WithdrawStake byte = iota
	PlaceStake
	WithdrawReward
)
View Source
const (
	// VersionMajor is major version component of the current release
	VersionMajor = 0
	// VersionMinor is minor version component of the current release
	VersionMinor = 0
	// VersionPatch is patch version component of the current release
	VersionPatch = 1
	// VersionMeta is append to the version string
	VersionMeta = "testnet"
)

Variables

View Source
var (
	// S/Kademlia overlay network parameters.
	SKademliaC1 = 1
	SKademliaC2 = 1

	// Snowball consensus protocol parameters.
	SnowballK     = 2
	SnowballAlpha = 0.8
	SnowballBeta  = 150

	// Timeout for querying a transaction to K peers.
	QueryTimeout = 1 * time.Second

	// Number of rounds we should be behind before we start syncing.
	SyncIfRoundsDifferBy uint64 = 2

	// Size of individual chunks sent for a syncing peer.
	SyncChunkSize = 16384

	// Max graph depth difference to search for eligible transaction
	// parents from for our node.
	MaxDepthDiff uint64 = 10

	// Max number of parents referencable by a transaction.
	MaxParentsPerTransaction = 32

	// Minimum difficulty to define a critical transaction.
	MinDifficulty byte = 8

	// Factor to scale a transactions confidence down by to compute the difficulty needed to define a critical transaction.
	DifficultyScaleFactor = 0.5

	// Fee amount paid by a node per transaction.
	TransactionFeeAmount uint64 = 2

	// Minimum amount of stake to start being able to reap validator rewards.
	MinimumStake uint64 = 100

	MinimumRewardWithdraw = MinimumStake

	RewardWithdrawalsRoundLimit = 50

	PruningLimit = uint8(30)

	FaucetAddress = "0f569c84d434fb0ca682c733176f7c0c2d853fce04d95ae131d2f9b4124d93d8"

	GasTable = map[string]uint64{}/* 179 elements not displayed */

)
View Source
var (
	GitCommit = "unset"
	GoVersion = "unset"
	OSArch    = "unset"
)

variables set via linker flags

View Source
var Version = func() string {
	return fmt.Sprintf("v%d.%d.%d-%s", VersionMajor, VersionMinor, VersionPatch, VersionMeta)
}()

Version holds the textual version string.

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