consensus

package
v0.0.0-...-df2b3d5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine interface {
	// Configurate will be called on server startup, where the server will pass
	// its relay channel, which can be used to relay generated blocks and
	// consensus messages into the network and the private key.
	Configurate(chan<- *pb.Message, *ecdsa.PrivateKey)
	// AddTransaction will be called each time the server sees a tx for the
	// first time.
	AddTransaction(*pb.Transaction)
}

Engine is an interface abstraction for an algorithm agnostic consensus engine.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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