solo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNode

func NewNode(opts ...order.Option) (order.Order, error)

Types

type Node

type Node struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Node) Commit

func (n *Node) Commit() chan *pb.Block

func (*Node) Prepare

func (n *Node) Prepare(tx *pb.Transaction) error

func (*Node) Quorum

func (n *Node) Quorum() uint64

func (*Node) Ready

func (n *Node) Ready() bool

func (*Node) ReportState

func (n *Node) ReportState(height uint64, hash types.Hash)

func (*Node) Start

func (n *Node) Start() error

func (*Node) Step

func (n *Node) Step(ctx context.Context, msg []byte) error

func (*Node) Stop

func (n *Node) Stop()

Jump to

Keyboard shortcuts

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