Crate casper_node[−][src]
Expand description
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 types::NodeRng;
pub use utils::OS_PAGE_SIZE;
Modules
Components
Cryptographic types and functions.
Effects subsystem.
Logging via the tracing crate.
A network message type used for communication between nodes
Reactor core.
The set of JSON-RPCs which the API server handles.
Transport layer security and signing based on OpenSSL.
Common types used across multiple components.
Various functions that are not limited to a particular module, but are too small to warrant being factored out into standalone crates.
Macros
Construct a fatal error effect.
Used to unregister a metric from the Prometheus registry.
Structs
Consensus configuration.
Contract runtime configuration.
Configuration options for fetching.
SSE HTTP server configuration.
Configuration options for fetching.
Configuration options for gossiping.
REST HTTP server configuration.
JSON-RPC HTTP server configuration.
Small network configuration.
On-disk storage configuration.
Enums
Error returned as a result of migrating the config file.
Error returned as a result of migrating data.
Error returned by a GossipTable
.
Error type returned by the SmallNetwork
component.
A storage component initialization error.
Constants
The maximum thread count which should be spawned by the tokio runtime.
Statics
Global flag that indicates the currently running reactor should dump its event queue.
Global value that indicates the currently running reactor should exit if it is non-zero.
Version string for the compiled node. Filled in at build time, output allocated at runtime.
Color version string for the compiled node. Filled in at build time, output allocated at runtime.
Functions
Migrates values from the old config file to the new one, modifying the new config file on-disk.
Migrates data from that specified in the old config file to that specified in the new one.
Constructs a new NodeRng
.
Setup UNIX signal hooks for current application.