mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 11:31:08 +03:00
Don't run full validation on genesis
This commit is contained in:
parent
ce2fb6ecb7
commit
9beb66a75e
1 changed files with 2 additions and 1 deletions
|
@ -427,7 +427,8 @@ impl NetToChainAdapter {
|
|||
// We are out of consensus at this point and want to track the problem
|
||||
// down as soon as possible.
|
||||
// Skip this if we are currently syncing (too slow).
|
||||
if !self.currently_syncing.load(Ordering::Relaxed)
|
||||
if chain.head().unwrap().height > 0
|
||||
&& !self.currently_syncing.load(Ordering::Relaxed)
|
||||
&& self.config.chain_validation_mode == ChainValidationMode::EveryBlock
|
||||
{
|
||||
let now = Instant::now();
|
||||
|
|
Loading…
Reference in a new issue