core

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: GPL-3.0, GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(val interface{}) ([]byte, error)

func NewRoundState

func NewRoundState(r *big.Int, h *big.Int) *roundState

NewRoundState creates a new roundState instance with the given view and validatorSet we need to keep a reference of proposal in order to propose locked proposal when there is a lock and itself is the proposer

func PrepareCommittedSeal

func PrepareCommittedSeal(hash common.Hash) []byte

PrepareCommittedSeal returns a committed seal for the given hash

Types

type Engine

type Engine interface {
	Start() error
	Stop() error
}

func New

func New(backend tendermint.Backend, config *tendermint.Config) Engine

New creates an Tendermint consensus core

type Step

type Step uint64

func (Step) Cmp

func (s Step) Cmp(y Step) int

func (Step) String

func (s Step) String() string

Jump to

Keyboard shortcuts

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