Documentation ¶
Index ¶
- type Config
- type Proposer
- func (p *Proposer) Close(_ context.Context)
- func (p *Proposer) InitFromCli(ctx context.Context, c *cli.Context) error
- func (p *Proposer) InitFromConfig(ctx context.Context, cfg *Config) (err error)
- func (p *Proposer) Name() string
- func (p *Proposer) ProposeOp(ctx context.Context) error
- func (p *Proposer) ProposeTxLists(ctx context.Context, txListsBytes [][]byte) []error
- func (p *Proposer) Start() error
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 ¶
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) InitFromCli ¶
InitFromCli New initializes the given proposer instance based on the command line flags.
func (*Proposer) InitFromConfig ¶ added in v0.19.0
InitFromConfig initializes the proposer instance based on the given configurations.
func (*Proposer) ProposeOp ¶
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
ProposeTxLists proposes the given transaction lists to TaikoL1 contract.