Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { L1WsEndpoint string L1HttpEndpoint string L1BeaconEndpoint string L2WsEndpoint string L2HttpEndpoint string TaikoL1Address common.Address TaikoL2Address common.Address TaikoTokenAddress common.Address AssignmentHookAddress common.Address L1ProverPrivKey *ecdsa.PrivateKey StartingBlockID *big.Int Dummy bool GuardianProverAddress common.Address GuardianProofSubmissionDelay time.Duration Graffiti string BackOffMaxRetries uint64 BackOffRetryInterval time.Duration ProveUnassignedBlocks bool ContesterMode bool EnableLivenessBondProof bool RPCTimeout time.Duration ProveBlockGasLimit uint64 HTTPServerPort uint64 Capacity uint64 MinOptimisticTierFee *big.Int MinSgxTierFee *big.Int MinSgxAndZkVMTierFee *big.Int MinEthBalance *big.Int MinTaikoTokenBalance *big.Int MaxExpiry time.Duration MaxProposedIn uint64 MaxBlockSlippage uint64 Allowance *big.Int GuardianProverHealthCheckServerEndpoint *url.URL RaikoHostEndpoint string RaikoL1Endpoint string RaikoL1BeaconEndpoint string RaikoL2Endpoint string L1NodeVersion string L2NodeVersion string BlockConfirmations uint64 TxmgrConfigs *txmgr.CLIConfig }
Config contains the configurations to initialize a Taiko prover.
func NewConfigFromCliContext ¶
NewConfigFromCliContext creates a new config instance from command line flags.
type Prover ¶
type Prover struct {
// contains filtered or unexported fields
}
Prover keeps trying to prove newly proposed blocks.
func (*Prover) InitFromCli ¶
InitFromCli initializes the given prover instance based on the command line flags.
func (*Prover) IsGuardianProver ¶ added in v0.18.0
IsGuardianProver returns true if the current prover is a guardian prover.
func (*Prover) ProverAddress ¶ added in v0.20.0
ProverAddress returns the current prover account address.
Click to show internal directories.
Click to hide internal directories.