forking

package
v0.0.0-...-dfb9311 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Overview

Package forking provides services and DAG wrappers that handle alerts raised when forks are encountered.

When a fork is encountered a forking proof is constructed. The proof consists of two units created by the same process at the same height, and another unit created by the same process, which is the maximal unit created by this process that we can use as a direct parent. This last unit might be nil. This proof is then reliably multicast to all other processes.

When we want to add a unit created by a known forker to our orderer, we need a proof that it is below a unit that someone used as the third unit in their alert. For this purpose we use commitments. Commitments either refer to a raised alert directly by id, or prove that a unit is a predecessor of a unit to which we have a commitment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAlerter

func NewAlerter(conf config.Config, orderer gomel.Orderer, netserv network.Server, log zerolog.Logger) (gomel.Alerter, error)

NewAlerter constructs an alerting service for the given dag with the given configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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