cmd

package
v0.9.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BinaryConfig = defaultBinaryConfig()
View Source
var DefaultConfig = func() *commonConfig.KwildConfig {
	return &commonConfig.KwildConfig{
		AppConfig: &commonConfig.AppConfig{
			JSONRPCListenAddress: "0.0.0.0:8484",
			AdminListenAddress:   "/tmp/kwild.socket",
			PrivateKeyPath:       "private_key",
			DBHost:               "127.0.0.1",
			DBPort:               "5432",
			DBUser:               "kwild",
			DBName:               "kwild",
			RPCTimeout:           commonConfig.Duration(45 * time.Second),
			RPCMaxReqSize:        4_200_000,
			ChallengeExpiry:      commonConfig.Duration(10 * time.Second),
			ChallengeRateLimit:   10.0,
			ReadTxTimeout:        commonConfig.Duration(5 * time.Second),
			Extensions:           make(map[string]map[string]string),
			Snapshots: commonConfig.SnapshotConfig{
				Enabled:         false,
				RecurringHeight: 14400,
				MaxSnapshots:    3,
				SnapshotDir:     "snapshots",
				MaxRowSize:      4 * 1024 * 1024,
			},
			GenesisState: "",
		},
		Logging: &commonConfig.Logging{
			Level:        "info",
			Format:       log.FormatJSON,
			TimeEncoding: log.TimeEncodingEpochFloat,
			OutputPaths:  []string{"stdout", "kwild.log"},
		},

		ChainConfig: &commonConfig.ChainConfig{
			P2P: &commonConfig.P2PConfig{
				ListenAddress:       "tcp://0.0.0.0:26656",
				ExternalAddress:     "",
				PrivateMode:         false,
				AddrBookStrict:      false,
				MaxNumInboundPeers:  40,
				MaxNumOutboundPeers: 10,
				AllowDuplicateIP:    true,
				PexReactor:          true,
				HandshakeTimeout:    commonConfig.Duration(20 * time.Second),
				DialTimeout:         commonConfig.Duration(3 * time.Second),
			},
			RPC: &commonConfig.ChainRPCConfig{
				ListenAddress:      "tcp://127.0.0.1:26657",
				BroadcastTxTimeout: commonConfig.Duration(15 * time.Second),
			},
			Mempool: &commonConfig.MempoolConfig{
				Size:        50000,
				CacheSize:   60000,
				MaxTxBytes:  1024 * 1024 * 4,
				MaxTxsBytes: 1024 * 1024 * 512,
			},
			StateSync: &commonConfig.StateSyncConfig{
				Enable:              false,
				SnapshotDir:         "rcvdSnaps",
				DiscoveryTime:       commonConfig.Duration(15 * time.Second),
				ChunkRequestTimeout: commonConfig.Duration(10 * time.Second),
				TrustPeriod:         commonConfig.Duration(36000 * time.Second),
			},
			Consensus: &commonConfig.ConsensusConfig{
				TimeoutPropose:   commonConfig.Duration(3 * time.Second),
				TimeoutPrevote:   commonConfig.Duration(2 * time.Second),
				TimeoutPrecommit: commonConfig.Duration(2 * time.Second),
				TimeoutCommit:    commonConfig.Duration(6 * time.Second),
			},
		},
	}
}

DefaultConfig returns the default configuration for kwild. It is exported as a function so that users can customize the default configuration.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
common
display
Package display provides interfaces and functions to format the command line output and print.
Package display provides interfaces and functions to format the command line output and print.
package custom allows for the creation of a custom-branded CLI that packages together the kwil-cli, kwil-admin, and kwild CLIs.
package custom allows for the creation of a custom-branded CLI that packages together the kwil-cli, kwil-admin, and kwild CLIs.
nodecfg
Package nodecfg provides functions to assist in the generation of new kwild node configurations.
Package nodecfg provides functions to assist in the generation of new kwild node configurations.
csv
config
Package config provides types and functions for node configuration loading and generation.
Package config provides types and functions for node configuration loading and generation.
server
Package server defines the main Kwil server, which includes the blockchain node and the gRPC services that interface with the Kwil dataset engine.
Package server defines the main Kwil server, which includes the blockchain node and the gRPC services that interface with the Kwil dataset engine.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL