[][src]Module libra_config::config

Structs

BaseConfig
ConsensusConfig
DebugInterfaceConfig
ExecutionConfig
GitHubConfig
IdentityFromConfig

The identity is stored within the config.

IdentityFromStorage

This represents an identity in a secure-storage as defined in NodeConfig::secure.

JsonRpcConfig
KeyManagerConfig
LeaderReputationConfig
LibraTraceConfig
LoggerConfig
MempoolConfig
MetricsConfig
NetworkConfig
NodeConfig

Config pulls in configuration information from the config file. This is used to set up the nodes and configure various parameters. The config file is broken up into sections for each module so that only that module can be passed around

OnDiskStorageConfig
ParseRoleError
PeerNetworkId

Identifier of a node, represented as (network_id, peer_id)

RemoteExecutionService
RemoteService
RocksdbConfig

Port selected RocksDB options for tuning underlying rocksdb instance of LibraDB. see https://github.com/facebook/rocksdb/blob/master/include/rocksdb/options.h for detailed explanations.

RootPath
SafetyRulesConfig
SafetyRulesTestConfig
StateSyncConfig
StorageConfig
TestConfig
TokenFromConfig
TokenFromDisk
UpstreamConfig

If a node considers a network 'upstream', the node will broadcast transactions (via mempool) to and send sync requests (via state sync) to all its peers in this network. For validators, it is unnecessary to declare their validator network as their upstream network in this config Otherwise, any non-validator network not declared here will be treated as a downstream network (i.e. transactions will not be broadcast to and sync requests will not be sent to such networks)

VaultConfig

Enums

ConsensusProposerType
DiscoveryMethod
Error
ExecutionCorrectnessService

Defines how execution correctness should be run

Identity
RoleType
SafetyRulesService

Defines how safety rules should be executed

SecureBackend
Token

Tokens can either be directly within this config or stored somewhere on disk.

WaypointConfig

Constants

CONNECTION_BACKOFF_BASE
CONNECTIVITY_CHECK_INTERVAL_MS
DEFAULT_BATCH_SIZE_LIMIT
DEFAULT_CONTENT_LENGTH_LIMIT
DEFAULT_JSON_RPC_ADDRESS
DEFAULT_JSON_RPC_PORT
DEFAULT_PAGE_SIZE_LIMIT
HANDSHAKE_VERSION

Current supported protocol negotiation handshake version.

MAX_CONCURRENT_NETWORK_NOTIFS
MAX_CONCURRENT_NETWORK_REQS
MAX_CONNECTION_DELAY_MS
MAX_FRAME_SIZE
MAX_FULLNODE_CONNECTIONS
NETWORK_CHANNEL_SIZE
PING_FAILURES_TOLERATED
PING_INTERVAL_MS
PING_TIMEOUT_MS

Traits

PersistableConfig

Functions

invariant

Type Definitions

SeedAddresses
SeedPublicKeys