Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultBlockTime = 2000 // in milliseconds
View Source
const DefaultGRPCPort int = 9632
View Source
const DefaultJSONRPCPort int = 8545
Variables ¶
This section is empty.
Functions ¶
func SetupDataDir ¶
SetupDataDir sets up the polygon-edge data directory and sub-folders
Types ¶
type Config ¶
type Config struct {
Chain *chain.Chain
JSONRPCAddr *net.TCPAddr
GRPCAddr *net.TCPAddr
LibP2PAddr *net.TCPAddr
Telemetry *Telemetry
Network *network.Config
DataDir string
Seal bool
PriceLimit uint64
MaxSlots uint64
SecretsManager *secrets.SecretsManagerConfig
RestoreFile *string
BlockTime uint64
}
Config is used to parametrize the minimal client
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns the default config for JSON-RPC, GRPC (ports) and Networking
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Minimal is the central manager of the blockchain client
Click to show internal directories.
Click to hide internal directories.