pub fn initialize(
		number: &T::BlockNumber,
		parent_hash: &T::Hash,
		digest: &DigestOf<T>,
		kind: InitKind,
	) {
		// populate environment
		ExecutionPhase::put(Phase::Initialization);
		storage::unhashed::put(well_known_keys::EXTRINSIC_INDEX, &0u32);
		<Number<T>>::put(number);
		<Digest<T>>::put(digest);
		<ParentHash<T>>::put(parent_hash);
		<BlockHash<T>>::insert(*number - One::one(), parent_hash);

		// Remove previous block data from storage
		BlockWeight::kill();

		// Kill inspectable storage entries in state when `InitKind::Full`.
		if let InitKind::Full = kind {
			<Events<T>>::kill();
			EventCount::kill();
			<EventTopics<T>>::remove_all();
		}
	}
/// Start the execution of a particular block.
Start the execution of a particular block.
Start the execution of a particular block .
pub fn initialize(
		number: &T::BlockNumber,
		parent_hash: &T::Hash,
		digest: &DigestOf<T>,
		kind: InitKind,
	) {
		// populate environment
		ExecutionPhase::put(Phase::Initialization);
		storage::unhashed::put(well_known_keys::EXTRINSIC_INDEX, &0u32);
		<Number<T>>::put(number);
		<Digest<T>>::put(digest);
		<ParentHash<T>>::put(parent_hash);
		<BlockHash<T>>::insert(*number - One::one(), parent_hash);
		// Remove previous block data from storage
		BlockWeight::kill();
		// Kill inspectable storage entries in state when `InitKind::Full`.
		if let InitKind::Full = kind {
			<Events<T>>::kill();
			EventCount::kill();
			<EventTopics<T>>::remove_all();
		}
	}
pub fn initialize ( number : & T :: BlockNumber , parent_hash : & T :: Hash , digest : & DigestOf < T > , kind : InitKind , ) { // populate environment ExecutionPhase :: put ( Phase :: Initialization ) ; storage :: unhashed :: put ( well_known_keys :: EXTRINSIC_INDEX , & 0u32 ) ; < Number < T > > :: put ( number ) ; < Digest < T > > :: put ( digest ) ; < ParentHash < T > > :: put ( parent_hash ) ; < BlockHash < T > > :: insert ( * number - One :: one ( ) , parent_hash ) ; // Remove previous block data from storage BlockWeight :: kill ( ) ; // Kill inspectable storage entries in state when `InitKind::Full`. if let InitKind :: Full = kind { < Events < T > > :: kill ( ) ; EventCount :: kill ( ) ; < EventTopics < T > > :: remove_all ( ) ; } }
Start the execution of a particular block.
Start the execution of a particular block .
number
&T::BlockNumber
parent_hash
&T::Hash
digest
&DigestOf<T>
kind
InitKind
number
&T::BlockNumber
parent_hash
&T::Hash
digest
&DigestOf<T>
kind
InitKind