Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultValues = `` /* 756-byte string literal not displayed */
DefaultValues is the default configuration
View Source
const (
// FlagCfg flag used for config aka cfg
FlagCfg = "cfg"
)
Variables ¶
This section is empty.
Functions ¶
func NewKeyFromKeystore ¶
func NewKeyFromKeystore(cfg types.KeystoreFileConfig) (*ecdsa.PrivateKey, error)
NewKeyFromKeystore creates a private key from a keystore file
Types ¶
type Config ¶
type Config struct { PrivateKey types.KeystoreFileConfig DB db.Config Log log.Config RPC rpc.Config L1 L1Config }
Config represents the full configuration of the data node
type L1Config ¶
type L1Config struct { RpcURL string `mapstructure:"RpcURL"` PolygonValidiumAddress string `mapstructure:"PolygonValidiumAddress"` DataCommitteeAddress string `mapstructure:"DataCommitteeAddress"` Timeout types.Duration `mapstructure:"Timeout"` RetryPeriod types.Duration `mapstructure:"RetryPeriod"` BlockBatchSize uint `mapstructure:"BlockBatchSize"` TrackSequencer bool `mapstructure:"TrackSequencer"` TrackSequencerPollInterval types.Duration `mapstructure:"TrackSequencerPollInterval"` // GenesisBlock represents the block number where PolygonValidium contract is deployed on L1 GenesisBlock uint64 `mapstructure:"GenesisBlock"` }
L1Config is a struct that defines L1 contract and service settings
Click to show internal directories.
Click to hide internal directories.