Registry / networking / sp-consensus

sp-consensus

JSON →
library0.48.0rscratesunverified

Common utilities for building and using consensus engines in Substrate.

# Cargo.toml [dependencies] sp-consensus = "0.48.0"
INSTALL
IMPORT
SIG · SP-CONSENSUS
S
sp-consensus
networkingrustv0.48.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SyncOracle
use sp_consensus::SyncOracle;

Implements the SyncOracle trait for a custom consensus engine.

use sp_consensus::SyncOracle; struct MyOracle; impl SyncOracle for MyOracle { fn is_major_syncing(&self) -> bool { false } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.48.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
OpenAI (training)
1
Resources
sp-consensus — cargo add sp-consensus · libregistry