pub fn initialize(number: &T::BlockNumber, parent_hash: &T::Hash, txs_root: &T::Hash) {
		// populate environment.
		storage::unhashed::put(well_known_keys::EXTRINSIC_INDEX, &0u32);
		<Number<T>>::put(number);
		<ParentHash<T>>::put(parent_hash);
		<BlockHash<T>>::insert(*number - One::one(), parent_hash);
		<ExtrinsicsRoot<T>>::put(txs_root);
		<RandomSeed<T>>::put(Self::calculate_random());
		<Events<T>>::kill();
	}
/// 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, txs_root: &T::Hash) {
		// populate environment.
		storage::unhashed::put(well_known_keys::EXTRINSIC_INDEX, &0u32);
		<Number<T>>::put(number);
		<ParentHash<T>>::put(parent_hash);
		<BlockHash<T>>::insert(*number - One::one(), parent_hash);
		<ExtrinsicsRoot<T>>::put(txs_root);
		<RandomSeed<T>>::put(Self::calculate_random());
		<Events<T>>::kill();
	}
pub fn initialize ( number : & T :: BlockNumber , parent_hash : & T :: Hash , txs_root : & T :: Hash ) { // populate environment. storage :: unhashed :: put ( well_known_keys :: EXTRINSIC_INDEX , & 0u32 ) ; < Number < T > > :: put ( number ) ; < ParentHash < T > > :: put ( parent_hash ) ; < BlockHash < T > > :: insert ( * number - One :: one ( ) , parent_hash ) ; < ExtrinsicsRoot < T > > :: put ( txs_root ) ; < RandomSeed < T > > :: put ( Self :: calculate_random ( ) ) ; < Events < T > > :: kill ( ) ; }
Start the execution of a particular block.
Start the execution of a particular block .
number
&T::BlockNumber
parent_hash
&T::Hash
txs_root
&T::Hash
number
&T::BlockNumber
parent_hash
&T::Hash
txs_root
&T::Hash