chains

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0, BSD-2-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ParamsChains    = &ParametersChains{}
	ParamsRawBlocks = &ParametersRawBlocks{}
)
View Source
var (
	CoreComponent *app.CoreComponent
)

Functions

func AllChains

func AllChains() *chains.Chains

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"`
}

type ParametersRawBlocks

type ParametersRawBlocks struct {
	Enabled   bool   `default:"false" usage:"whether the raw blocks plugin is enabled"`
	Directory string `default:"blocks" usage:"the raw blocks path"`
}

Jump to

Keyboard shortcuts

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