fn create_block(
        &self,
        block_template: BlockTemplate,
        time_service: &dyn TimeService,
    ) -> Result<Block> {
        let mining_hash = block_template.as_pow_header_blob();
        let consensus_nonce =
            self.solve_consensus_nonce(&mining_hash, block_template.difficulty, time_service);
        Ok(block_template.into_block(consensus_nonce))
    }
/// Construct block with BlockTemplate, this a shortcut method for calculate_next_difficulty + solve_consensus_nonce
Construct block with BlockTemplate, this a shortcut method for calculate_next_difficulty + solve_consensus_nonce
Construct block with BlockTemplate this a shortcut method for calculate_next_difficulty + solve_consensus_nonce
fn create_block(
        &self,
        block_template: BlockTemplate,
        time_service: &dyn TimeService,
    ) -> Result<Block> {
        let mining_hash = block_template.as_pow_header_blob();
        let consensus_nonce =
            self.solve_consensus_nonce(&mining_hash, block_template.difficulty, time_service);
        Ok(block_template.into_block(consensus_nonce))
    }
fn create_block ( & self , block_template : BlockTemplate , time_service : & dyn TimeService , ) -> Result < Block > { let mining_hash = block_template . as_pow_header_blob ( ) ; let consensus_nonce = self . solve_consensus_nonce ( & mining_hash , block_template . difficulty , time_service ) ; Ok ( block_template . into_block ( consensus_nonce ) ) }
Construct block with BlockTemplate, this a shortcut method for calculate_next_difficulty + solve_consensus_nonce
Construct block with BlockTemplate this a shortcut method for calculate_next_difficulty + solve_consensus_nonce
&self
block_template
BlockTemplate
time_service
&dyn TimeService
&self
block_template
BlockTemplate
time_service
&dyn TimeService