chain_writer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractChainWriterFactory

type AbstractChainWriterFactory interface {
	NewWriter(context interface{}) ChainWriter
	SetChain(chain middleware.ChainInterface)
}

type BftChainWriter

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

func (*BftChainWriter) SaveBlock

func (cw *BftChainWriter) SaveBlock() error

type BftChainWriterWithoutVotes

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

func (*BftChainWriterWithoutVotes) SaveBlock

func (cw *BftChainWriterWithoutVotes) SaveBlock() error

type ChainWriter

type ChainWriter interface {
	SaveBlock() error
}

type ChainWriterFactory

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

func NewChainWriterFactory

func NewChainWriterFactory() *ChainWriterFactory

func (*ChainWriterFactory) NewWriter

func (f *ChainWriterFactory) NewWriter(context interface{}) ChainWriter

func (*ChainWriterFactory) SetChain

func (f *ChainWriterFactory) SetChain(chain middleware.ChainInterface)

type PowChainWriter

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

func NewPowChainWriter

func NewPowChainWriter(context *middleware.BlockContext, chain middleware.ChainInterface) *PowChainWriter

func (*PowChainWriter) SaveBlock

func (cw *PowChainWriter) SaveBlock() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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