byzantine

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package byzantine contiains byzantine behaviors that can be applied to the consensus protocols.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFork

func NewFork(rules consensus.Rules) consensus.Rules

NewFork returns a byzantine replica that will try to fork the chain.

func NewSilence

func NewSilence(c consensus.Rules) consensus.Rules

NewSilence returns a byzantine replica that will never propose.

Types

type Byzantine added in v0.4.0

type Byzantine interface {
	// Wrap wraps the rules and returns an altered rules implementation.
	Wrap(consensus.Rules) consensus.Rules
}

Byzantine wraps a consensus rules implementation and alters its behavior.

Jump to

Keyboard shortcuts

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