Trait sc_service::BuildGenesisBlock
source · pub trait BuildGenesisBlock<Block: BlockT> {
type BlockImportOperation;
// Required method
fn build_genesis_block(self) -> Result<(Block, Self::BlockImportOperation)>;
}
Expand description
Trait for building the genesis block.
Required Associated Types§
sourcetype BlockImportOperation
type BlockImportOperation
The import operation used to import the genesis block into the backend.
Required Methods§
sourcefn build_genesis_block(self) -> Result<(Block, Self::BlockImportOperation)>
fn build_genesis_block(self) -> Result<(Block, Self::BlockImportOperation)>
Returns the built genesis block along with the block import operation after setting the genesis storage.