Struct ckb_chain_spec::ChainSpec [−][src]
pub struct ChainSpec {
pub name: String,
pub genesis: Genesis,
pub params: Params,
pub pow: Pow,
pub hash: Byte32,
}Expand description
The CKB block chain specification
Fields
name: StringThe spec name, also used identify network
genesis: GenesisThe genesis block information
params: ParamsThe block chain parameters
pow: PowThe block chain pow
hash: Byte32Hash of blake2b_256 spec content bytes, used for check consistency between database and config
Implementations
New ChainSpec instance from load spec file resource
The ChainSpec specified pow engine
Build consensus instance
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ChainSpec
impl UnwindSafe for ChainSpec
Blanket Implementations
Mutably borrows from an owned value. Read more