gossip

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0, BSD-2-Clause Imports: 15 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const PluginName = "Gossip"

PluginName is the name of the gossip plugin.

Variables

View Source
var ErrBlockNotFound = errors.New("block not found")

ErrBlockNotFound is returned when a block 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 added in v0.7.4

type ParametersDefinition struct {
	// MissingBlockRequestRelayProbability defines the probability of missing block requests being relayed to other neighbors.
	MissingBlockRequestRelayProbability float64 `default:"0.01" usage:"the probability of missing block requests being relayed to other neighbors"`

	BlocksRateLimit        blocksLimitParameters
	BlockRequestsRateLimit blockRequestsLimitParameters
}

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