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 NewBftChainWriter ¶
func NewBftChainWriter(context *middleware.BftBlockContext, chain middleware.ChainInterface) *BftChainWriter
func (*BftChainWriter) SaveBlock ¶
func (cw *BftChainWriter) SaveBlock() error
type BftChainWriterWithoutVotes ¶
type BftChainWriterWithoutVotes struct {
// contains filtered or unexported fields
}
func NewBftChainWriterWithoutVotes ¶
func NewBftChainWriterWithoutVotes(context *middleware.BftBlockContextWithoutVotes, chain middleware.ChainInterface) *BftChainWriterWithoutVotes
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.