builder

package
v0.14.7 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NumTxnsToBatchExecute = 10
	ErrPendingParentHash  = errors.New("pending block parent hash does not match chain head")
)

Functions

This section is empty.

Types

type BuildResult added in v0.14.7

type BuildResult struct {
	Pending            sync.Pending
	ProposalCommitment types.ProposalCommitment
}

type Builder

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

func New

func New(
	bc *blockchain.Blockchain,
	vm vm.VM,
	log utils.Logger,
	disableFees,
	skipValidate bool,
) Builder

func (*Builder) ClearPending

func (b *Builder) ClearPending() error

func (*Builder) Finalise

func (b *Builder) Finalise(pending *sync.Pending, signer utils.BlockSignFunc, privateKey *ecdsa.PrivateKey) error

func (*Builder) Finish added in v0.14.7

func (b *Builder) Finish() (BuildResult, error)

func (*Builder) InitPendingBlock

func (b *Builder) InitPendingBlock(sequencerAddress *felt.Felt) error

func (*Builder) Pending

func (b *Builder) Pending() (*sync.Pending, error)

func (*Builder) PendingBlock

func (b *Builder) PendingBlock() *core.Block

func (*Builder) PendingState

func (b *Builder) PendingState() (core.StateReader, func() error, error)

func (*Builder) ProposalInit added in v0.14.6

func (b *Builder) ProposalInit(pInit *types.ProposalInit) error

func (*Builder) RunTxns added in v0.14.6

func (b *Builder) RunTxns(txns []mempool.BroadcastedTransaction) (err error)

RunTxns executes the provided transaction and applies the state changes to the pending state

func (*Builder) SetBlockInfo added in v0.14.6

func (b *Builder) SetBlockInfo(blockInfo *types.BlockInfo)

Jump to

Keyboard shortcuts

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