[][src]Crate casper_node

Casper blockchain node

This crate contain the core application for the Casper blockchain. Run with --help to see available command-line arguments.

Application structure

While the main function is the central entrypoint for the node application, its core event loop is found inside the reactor.

Re-exports

pub use utils::OS_PAGE_SIZE;
pub use utils::OS_PAGE_SIZE;

Modules

components

Components

crypto

Cryptographic types and functions.

effect

Effects subsystem.

logging

Logging via the tracing crate.

protocol

A network message type used for communication between nodes

reactor

Reactor core.

rpcs

The set of JSON-RPCs which the API server handles.

tls

Transport layer security and signing based on OpenSSL.

types

Common types used across multiple components.

utils

Various functions that are not limited to a particular module, but are too small to warrant being factored out into standalone crates.

Macros

fatal

Construct a fatal error effect.

Structs

ApiServerConfig

API server configuration.

Chainspec

A collection of configuration settings describing the state of the system at genesis and upgrades to basic system functionality (including system contracts and gas costs) occurring after genesis.

ConsensusConfig

Consensus configuration.

ContractRuntimeConfig

Contract runtime configuration.

FetcherConfig

Configuration options for fetching.

GossipConfig

Configuration options for gossiping.

SmallNetworkConfig

Small network configuration.

StorageConfig

On-disk storage configuration.

VERSION_STRING

Version string for the compiled node. Filled in at build time, output allocated at runtime.

VERSION_STRING_COLOR

Color version string for the compiled node. Filled in at build time, output allocated at runtime.

Enums

ChainspecError

Error while encoding or decoding the chainspec.

GossipError

Error returned by a GossipTable.

SmallNetworkError

Error type returned by the SmallNetwork component.

StorageError

Error returned by the storage component.

Constants

MAX_THREAD_COUNT

The maximum thread count which should be spawned by the tokio runtime.