Expand description
Integration crate for running a synchronous bitcoin-rs node.
The crate owns process-level concerns: layered configuration, storage backend selection, signal bridging, metrics/tracing setup, crash recovery, and the central crossbeam-driven event loop that connects the subsystem crates.
Re-exports§
pub use bip9_context::BlockTreeContext;pub use block_source::NodeBlockSource;pub use config::Auth;pub use config::Config;pub use p2p_chain::NodeP2pChainQuery;pub use run::run;pub use state::ApplyError;pub use sync::BlockSync;pub use utxo_view::UtxoSetView;pub use zmq_publisher::NoOpZmqPublisher;pub use zmq_publisher::SocketZmqPublisher;pub use zmq_publisher::TracingZmqPublisher;pub use zmq_publisher::ZmqPublisher;
Modules§
- apply
- Block-apply pipeline executed by
NodeState::apply_blockandBlockSync::tick. Block-apply pipeline over shared node handles. - bip9_
context - BIP9 deployment-state adapter over
BlockTree. Adapter implementingbitcoin_rs_consensus::DeploymentContextoverbitcoin_rs_chain::BlockTree. - bitcoin_
conf_ compat - Bitcoin Core configuration compatibility.
- block_
source - Adapter.
- config
- Layered node configuration.
- crash_
recovery - Startup crash recovery. Startup crash-recovery: detect partial commits and replay the gap.
- event_
loop - Central synchronous event loop.
- import
- Block import pipeline. Block import pipeline (skeleton).
- logging
- Tracing initialization.
- metrics
- Metrics instrumentation and optional exposition.
- p2p_
chain - Node-side active-chain view for server-side P2P responders. Node-side adapter for server-side P2P active-chain requests.
- run
- Top-level node runner. Top-level orchestration: wire subsystems, spin the event loop, drain.
- shutdown
- Graceful shutdown.
- signal
- Signal handling.
- state
- Shared node state. Shared node state aggregating subsystem handles.
- sync
- Block download orchestrator. Block download orchestrator.
- utxo_
view - UTXO view adapter for consensus transaction checks.
UtxoViewadapter over the in-memoryUtxoSet. - zmq_
publisher - ZMQ publisher trait + implementations for the notification subsystem. ZMQ publisher trait and transport-backed implementation for node notifications.
Enums§
- Network
- A supported Bitcoin network.