noops

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Noops

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

Noops Define Noops

func NewNoops

func NewNoops(options *Options, stack consensus.IStack) *Noops

NewNoops Create Noops

func (*Noops) BroadcastConsensusChannel

func (noops *Noops) BroadcastConsensusChannel() <-chan *consensus.BroadcastConsensus

BroadcastConsensusChannel Broadcast consensus data

func (*Noops) CommittedTxsChannel

func (noops *Noops) CommittedTxsChannel() <-chan *consensus.OutputTxs

CommittedTxsChannel Commit block data

func (*Noops) IsRunning

func (noops *Noops) IsRunning() bool

IsRunning Noops consenter serverice already started

func (*Noops) Quorum

func (noops *Noops) Quorum() int

Quorum num of quorum

func (*Noops) RecvConsensus

func (noops *Noops) RecvConsensus(payload []byte)

RecvConsensus Receive consensus data

func (*Noops) Start

func (noops *Noops) Start()

Start Start consenter serverice of Noops

func (*Noops) Stop

func (noops *Noops) Stop()

Stop Stop consenter serverice of Noops

func (*Noops) String

func (noops *Noops) String() string

type Options

type Options struct {
	BlockSize     int
	BlockInterval time.Duration

	CommitTxChanSize     int
	CommittedTxsChanSize int
	BroadcastChanSize    int
}

Options Define noops options

func NewDefaultOptions

func NewDefaultOptions() *Options

NewDefaultOptions Create noops options with default

Jump to

Keyboard shortcuts

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