We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b719ed commit fe3d87aCopy full SHA for fe3d87a
consensus/src/block/batch_prepare.rs
@@ -177,7 +177,7 @@ pub async fn batch_prepare_main_chain_blocks<D: Database>(
177
.into_par_iter()
178
.zip(difficulties)
179
.zip(txs)
180
- .map(|((block, difficultly), txs)| {
+ .map(|((block, difficulty), txs)| {
181
// Calculate the PoW for the block.
182
let height = block.height;
183
let block = PreparedBlock::new_prepped(
@@ -186,7 +186,7 @@ pub async fn batch_prepare_main_chain_blocks<D: Database>(
186
)?;
187
188
// Check the PoW
189
- check_block_pow(&block.pow_hash, difficultly).map_err(ConsensusError::Block)?;
+ check_block_pow(&block.pow_hash, difficulty).map_err(ConsensusError::Block)?;
190
191
let mut txs = start_tx_verification()
192
.append_txs(txs)
0 commit comments