gossip

package
v0.8.18 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0, BSD-2-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "Gossip"

PluginName is the name of the gossip plugin.

Variables

View Source
var ErrMessageNotFound = errors.New("message not found")

ErrMessageNotFound is returned when a message could not be found in the Tangle.

View Source
var Parameters = &ParametersDefinition{}

Parameters contains the configuration parameters of the gossip plugin.

View Source
var (
	// Plugin is the plugin instance of the gossip plugin.
	Plugin *node.Plugin
)

Functions

This section is empty.

Types

type ParametersDefinition

type ParametersDefinition struct {
	// BindAddress defines on which address the gossip service should listen.
	BindAddress string `default:"0.0.0.0:14666" usage:"the bind address for the gossip"`

	// MissingMessageRequestRelayProbability defines the probability of missing message requests being relayed to other neighbors.
	MissingMessageRequestRelayProbability float64 `default:"0.01" usage:"the probability of missing message requests being relayed to other neighbors"`

	MessagesRateLimit        messagesLimitParameters
	MessageRequestsRateLimit messageRequestsLimitParameters
}

ParametersDefinition contains the definition of configuration parameters used by the gossip plugin.

Jump to

Keyboard shortcuts

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