proposer

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 29 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*rpc.ClientConfig
	AssignmentHookAddress      common.Address
	L1ProposerPrivKey          *ecdsa.PrivateKey
	L2SuggestedFeeRecipient    common.Address
	ExtraData                  string
	ProposeInterval            time.Duration
	LocalAddresses             []common.Address
	LocalAddressesOnly         bool
	MinGasUsed                 uint64
	MinTxListBytes             uint64
	MinProposingInternal       time.Duration
	MaxProposedTxListsPerEpoch uint64
	ProposeBlockTxGasLimit     uint64
	ProverEndpoints            []*url.URL
	OptimisticTierFee          *big.Int
	SgxTierFee                 *big.Int
	TierFeePriceBump           *big.Int
	MaxTierFeePriceBumps       uint64
	IncludeParentMetaHash      bool
	BlobAllowed                bool
	TxmgrConfigs               *txmgr.CLIConfig
	L1BlockBuilderTip          *big.Int
}

Config contains all configurations to initialize a Taiko proposer.

func NewConfigFromCliContext

func NewConfigFromCliContext(c *cli.Context) (*Config, error)

NewConfigFromCliContext initializes a Config instance from command line flags.

type Proposer

type Proposer struct {
	// configurations
	*Config
	// contains filtered or unexported fields
}

Proposer keep proposing new transactions from L2 execution engine's tx pool at a fixed interval.

func (*Proposer) Close

func (p *Proposer) Close(_ context.Context)

Close closes the proposer instance.

func (*Proposer) InitFromCli

func (p *Proposer) InitFromCli(ctx context.Context, c *cli.Context) error

InitFromCli New initializes the given proposer instance based on the command line flags.

func (*Proposer) InitFromConfig added in v0.19.0

func (p *Proposer) InitFromConfig(ctx context.Context, cfg *Config) (err error)

InitFromConfig initializes the proposer instance based on the given configurations.

func (*Proposer) Name

func (p *Proposer) Name() string

Name returns the application name.

func (*Proposer) ProposeOp

func (p *Proposer) ProposeOp(ctx context.Context) error

ProposeOp performs a proposing operation, fetching transactions from L2 execution engine's tx pool, splitting them by proposing constraints, and then proposing them to TaikoL1 contract.

func (*Proposer) ProposeTxLists added in v0.22.0

func (p *Proposer) ProposeTxLists(ctx context.Context, txListsBytes [][]byte) []error

ProposeTxLists proposes the given transaction lists to TaikoL1 contract.

func (*Proposer) Start

func (p *Proposer) Start() error

Start starts the proposer's main loop.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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