solo

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 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) GetPendingNonceByAccount added in v1.0.1

func (n *Node) GetPendingNonceByAccount(account string) uint64

func (*Node) PoolSize added in v1.0.1

func (n *Node) PoolSize() int

Current txpool's size

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