From c6761f0b1858a6bfda66d00c2b61539931d597bb Mon Sep 17 00:00:00 2001 From: Ignotus Peverell Date: Thu, 22 Mar 2018 22:58:32 +0000 Subject: [PATCH] Fix adapter compile error --- grin/src/adapters.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/grin/src/adapters.rs b/grin/src/adapters.rs index 84b50f19f..b041345c2 100644 --- a/grin/src/adapters.rs +++ b/grin/src/adapters.rs @@ -437,6 +437,7 @@ 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). + let chain = w(&self.chain); if chain.head().unwrap().height > 0 && !self.currently_syncing.load(Ordering::Relaxed) && self.config.chain_validation_mode == ChainValidationMode::EveryBlock {