Documentation
¶
Overview ¶
Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapBlock ¶
func BootstrapBlock(tx *types.ConfigTxEnvelope) (*types.Block, error)
Types ¶
type BlockCreator ¶
type BlockCreator struct {
// contains filtered or unexported fields
}
BlockCreator uses transactions batch queue to construct a block proposal and submits the proposed block to the block-replicator. The block-replicator is in charge of numbering the blocks and setting the previous BlockHeaderBase hash.
func (*BlockCreator) RegisterReplicator ¶
func (b *BlockCreator) RegisterReplicator(blockReplicator Replicator)
func (*BlockCreator) Start ¶
func (b *BlockCreator) Start()
Start runs the block assembler in an infinite loop
func (*BlockCreator) WaitTillStart ¶
func (b *BlockCreator) WaitTillStart()
WaitTillStart waits till the block creator is started
type Config ¶
type Config struct { TxBatchQueue *queue.Queue BlockStore *blockstore.Store PendingTxs *queue.PendingTxs Logger *logger.SugarLogger }
Config holds the configuration information required to initialize the block creator
type Replicator ¶
Replicator is the input to the block replication layer.
Click to show internal directories.
Click to hide internal directories.