From 9beb66a75e0a021d8e2dd1df984e0c7b445292d2 Mon Sep 17 00:00:00 2001 From: Ignotus Peverell Date: Thu, 22 Mar 2018 19:25:36 +0000 Subject: [PATCH] Don't run full validation on genesis --- grin/src/adapters.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grin/src/adapters.rs b/grin/src/adapters.rs index 74be3e1c9..c717c233c 100644 --- a/grin/src/adapters.rs +++ b/grin/src/adapters.rs @@ -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();