chains

package
v1.0.1-rc.5 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ParamsChains          = &ParametersChains{}
	ParamsWAL             = &ParametersWAL{}
	ParamsValidator       = &ParametersValidator{}
	ParamsStateManager    = &ParametersStateManager{}
	ParamsSnapshotManager = &ParametersSnapshotManager{}
)
View Source
var (
	Component *app.Component
)

Functions

This section is empty.

Types

type ParametersChains

type ParametersChains struct {
	BroadcastUpToNPeers              int           `default:"2" usage:"number of peers an offledger request is broadcasted to"`
	BroadcastInterval                time.Duration `default:"5s" usage:"time between re-broadcast of offledger requests"`
	APICacheTTL                      time.Duration `default:"300s" usage:"time to keep processed offledger requests in api cache"`
	PullMissingRequestsFromCommittee bool          `default:"true" usage:"whether or not to pull missing requests from other committee members"`
	DeriveAliasOutputByQuorum        bool          `default:"true" usage:"false means we propose own AliasOutput, true - by majority vote."`
	PipeliningLimit                  int           `default:"-1" usage:"-1 -- infinite, 0 -- disabled, X -- build the chain if there is up to X transactions unconfirmed by L1."`
	ConsensusDelay                   time.Duration `default:"500ms" usage:"Minimal delay between consensus runs."`
	RecoveryTimeout                  time.Duration `default:"20s" usage:"Time after which another consensus attempt is made."`
	RedeliveryPeriod                 time.Duration `default:"2s" usage:"the resend period for msg."`
	PrintStatusPeriod                time.Duration `default:"3s" usage:"the period to print consensus instance status."`
	ConsensusInstsInAdvance          int           `default:"3" usage:""`
	AwaitReceiptCleanupEvery         int           `default:"100" usage:"for every this number AwaitReceipt will be cleaned up"`
	MempoolTTL                       time.Duration `default:"24h" usage:"Time that requests are allowed to sit in the mempool without being processed"`
}

type ParametersSnapshotManager

type ParametersSnapshotManager struct {
	SnapshotsToLoad []string `` /* 192-byte string literal not displayed */
	Period          uint32   `` /* 141-byte string literal not displayed */
	Delay           uint32   `default:"20" usage:"how many states should pass before snapshot is produced"`
	LocalPath       string   `default:"waspdb/snap" usage:"the path to the snapshots folder in this node's disk"`
	NetworkPaths    []string `` /* 159-byte string literal not displayed */
}

type ParametersStateManager

type ParametersStateManager struct {
	BlockCacheMaxSize                 int           `default:"1000" usage:"how many blocks may be stored in cache before old ones start being deleted"`
	BlockCacheBlocksInCacheDuration   time.Duration `default:"1h" usage:"how long should the block stay in block cache before being deleted"`
	BlockCacheBlockCleaningPeriod     time.Duration `default:"1m" usage:"how often should the block cache be cleaned"`
	StateManagerGetBlockRetry         time.Duration `default:"3s" usage:"how often get block requests should be repeated"`
	StateManagerRequestCleaningPeriod time.Duration `default:"1s" usage:"how often requests waiting for response should be checked for expired context"`
	StateManagerTimerTickPeriod       time.Duration `default:"1s" usage:"how often timer tick fires in state manager"`
	PruningMinStatesToKeep            int           `default:"10000" usage:"this number of states will always be available in the store; if 0 - store pruning is disabled"`
	PruningMaxStatesToDelete          int           `default:"1000" usage:"on single store pruning attempt at most this number of states will be deleted"`
}

type ParametersValidator

type ParametersValidator struct {
	Address string `` /* 133-byte string literal not displayed */
}

type ParametersWAL

type ParametersWAL struct {
	LoadToStore bool   `default:"false" usage:"load blocks from \"write-ahead log\" to the store on node start-up"`
	Enabled     bool   `default:"true" usage:"whether the \"write-ahead logging\" is enabled"`
	Path        string `default:"waspdb/wal" usage:"the path to the \"write-ahead logging\" folder"`
}

Jump to

Keyboard shortcuts

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