Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockBuilder ¶
type BlockBuilder struct {
// contains filtered or unexported fields
}
BlockBuilder wraps a goroutine that builds Proof-of-Stake payloads (PoS "mining")
func NewBlockBuilder ¶
func NewBlockBuilder(build BlockBuilderFunc, param *core.BlockBuilderParameters) *BlockBuilder
func (*BlockBuilder) Block ¶
func (b *BlockBuilder) Block() *types.Block
func (*BlockBuilder) Stop ¶
func (b *BlockBuilder) Stop() (*types.BlockWithReceipts, error)
type BlockBuilderFunc ¶
type BlockBuilderFunc func(param *core.BlockBuilderParameters, interrupt *int32) (*types.BlockWithReceipts, error)
type LatestBlockBuiltStore ¶
type LatestBlockBuiltStore struct {
// contains filtered or unexported fields
}
func NewLatestBlockBuiltStore ¶
func NewLatestBlockBuiltStore() *LatestBlockBuiltStore
func (*LatestBlockBuiltStore) AddBlockBuilt ¶
func (s *LatestBlockBuiltStore) AddBlockBuilt(block *types.Block)
func (*LatestBlockBuiltStore) BlockBuilt ¶
func (s *LatestBlockBuiltStore) BlockBuilt() *types.Block
Click to show internal directories.
Click to hide internal directories.