Documentation
¶
Index ¶
- Variables
- type BuildResult
- type Builder
- func (b *Builder) ClearPending() error
- func (b *Builder) Finalise(pending *sync.Pending, signer utils.BlockSignFunc, ...) error
- func (b *Builder) Finish() (BuildResult, error)
- func (b *Builder) InitPendingBlock(sequencerAddress *felt.Felt) error
- func (b *Builder) Pending() (*sync.Pending, error)
- func (b *Builder) PendingBlock() *core.Block
- func (b *Builder) PendingState() (core.StateReader, func() error, error)
- func (b *Builder) ProposalInit(pInit *types.ProposalInit) error
- func (b *Builder) RunTxns(txns []mempool.BroadcastedTransaction) (err error)
- func (b *Builder) SetBlockInfo(blockInfo *types.BlockInfo)
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 (*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 (*Builder) PendingBlock ¶
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
Click to show internal directories.
Click to hide internal directories.