solo

package
v0.0.0-...-adbeaea Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Solo

type Solo struct {
	// contains filtered or unexported fields
}

Solo implements the Consensus interface. It relays messages directly from the State to the Service.

func NewSolo

func NewSolo(logger *logrus.Logger) *Solo

NewSolo returns a Solo object with nil State and Service

func (*Solo) Info

func (s *Solo) Info() (map[string]string, error)

Info returns the current transaction index

func (*Solo) Init

func (s *Solo) Init(state *state.State, service *service.Service) error

Init sets the state and service

func (*Solo) Run

func (s *Solo) Run() error

Run pipes the Service's submitCh to the States's ProcessBlock function. It wraps individual transactions into Huron Blocks

Jump to

Keyboard shortcuts

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