mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
Remove unecessary check in pipe.rs (#1763)
This commit is contained in:
parent
119b5cfc46
commit
701f0b9b60
1 changed files with 1 additions and 7 deletions
|
@ -28,7 +28,7 @@ use core::core::verifier_cache::VerifierCache;
|
|||
use core::core::Committed;
|
||||
use core::core::{Block, BlockHeader, BlockSums};
|
||||
use core::global;
|
||||
use core::pow::{self, Difficulty};
|
||||
use core::pow;
|
||||
use error::{Error, ErrorKind};
|
||||
use grin_store;
|
||||
use store;
|
||||
|
@ -424,12 +424,6 @@ fn validate_header(header: &BlockHeader, ctx: &mut BlockContext) -> Result<(), E
|
|||
return Err(ErrorKind::DifficultyTooLow.into());
|
||||
}
|
||||
|
||||
// explicit check to ensure we are not below the minimum difficulty
|
||||
// we will also check difficulty based on next_difficulty later on
|
||||
if target_difficulty < Difficulty::one() {
|
||||
return Err(ErrorKind::DifficultyTooLow.into());
|
||||
}
|
||||
|
||||
// explicit check to ensure total_difficulty has increased by exactly
|
||||
// the _network_ difficulty of the previous block
|
||||
// (during testnet1 we use _block_ difficulty here)
|
||||
|
|
Loading…
Reference in a new issue