Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { L1WsEndpoint string L1HttpEndpoint string L2WsEndpoint string L2HttpEndpoint string MxcL1Address common.Address MxcL2Address common.Address L1ProverPrivKey *ecdsa.PrivateKey ZKEvmRpcdEndpoint string ZkEvmRpcdParamsPath string StartingBlockID *big.Int MaxConcurrentProvingJobs uint Dummy bool OracleProver bool SystemProver bool OracleProverPrivateKey *ecdsa.PrivateKey SystemProverPrivateKey *ecdsa.PrivateKey Graffiti string RandomDummyProofDelayLowerBound *time.Duration RandomDummyProofDelayUpperBound *time.Duration ExpectedReward uint64 }
Config contains the configurations to initialize a Mxc prover.
func NewConfigFromCliContext ¶
NewConfigFromCliContext creates a new config instance from command line flags.
type Prover ¶
type Prover struct {
// contains filtered or unexported fields
}
Prover keep trying to prove new proposed blocks valid/invalid.
func (*Prover) InitFromCli ¶
New initializes the given prover instance based on the command line flags.
Click to show internal directories.
Click to hide internal directories.