sigil-node · genesis_loader
Source declarations, signatures and documentation for genesis_loader.
Source: sigil/node/sigil-node/src/genesis_loader.rs. SHA-256: 8712ecd501685ff1329655cf58e68e87b0598cda670c16460d55dcca4eae7551.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
genesis_loader::load_genesis
Load and validate a genesis configuration from a JSON file.
Errors
Returns [NodeError::GenesisLoadFailed] if the file cannot be read, the
JSON cannot be parsed, or the genesis configuration fails validation.
pub fn load_genesis(path: &str) -> Result<GenesisConfig, NodeError>;Source line: 13.
genesis_loader::load_genesis_from_str
Load a genesis configuration from a JSON string (useful for testing).
Errors
Same as [load_genesis] but operates on a string instead of a file path.
pub fn load_genesis_from_str(json: &str) -> Result<GenesisConfig, NodeError>;Source line: 29.