builder

package
v0.0.0-...-1f8a15b Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

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