chains

package
v1.3.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 18 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:"0s" usage:"time between re-broadcast of offledger requests; 0 value means that re-broadcasting is disabled"`
	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."`
	PostponeRecoveryMilestones        int           `default:"3" usage:"number of milestones to wait until a chain transition is considered as rejected"`
	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"`
	MempoolMaxOffledgerInPool         int           `default:"2000" usage:"Maximum number of off-ledger requests kept in the mempool"`
	MempoolMaxOnledgerInPool          int           `default:"1000" usage:"Maximum number of on-ledger requests kept in the mempool"`
	MempoolMaxTimedInPool             int           `default:"100" usage:"Maximum number of timed on-ledger requests kept in the mempool"`
	MempoolMaxOffledgerToPropose      int           `default:"500" usage:"Maximum number of off-ledger requests to propose for the next block"`
	MempoolMaxOnledgerToPropose       int           `default:"100" usage:"Maximum number of on-ledger requests to propose for the next block (includes timed requests)"`
	MempoolOnLedgerRefreshMinInterval time.Duration `` /* 243-byte string literal not displayed */
}

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"`
	StateManagerGetBlockNodeCount     int           `default:"5" usage:"how many nodes should get block request be sent to"`
	StateManagerGetBlockRetry         time.Duration `default:"3s" usage:"how often get block requests should be repeated"`
	StateManagerRequestCleaningPeriod time.Duration `default:"5m" usage:"how often requests waiting for response should be checked for expired context"`
	StateManagerStatusLogPeriod       time.Duration `default:"1m" usage:"how often state manager status information should be written to log"`
	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           `` /* 249-byte string literal not displayed */
}

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