Fix adapter compile error

This commit is contained in:
Ignotus Peverell 2018-03-22 22:58:32 +00:00
parent 836391cc53
commit c6761f0b18
No known key found for this signature in database
GPG key ID: 99CD25F39F8F8211

View file

@ -437,6 +437,7 @@ impl NetToChainAdapter {
// We are out of consensus at this point and want to track the problem // We are out of consensus at this point and want to track the problem
// down as soon as possible. // down as soon as possible.
// Skip this if we are currently syncing (too slow). // 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) if chain.head().unwrap().height > 0 && !self.currently_syncing.load(Ordering::Relaxed)
&& self.config.chain_validation_mode == ChainValidationMode::EveryBlock && self.config.chain_validation_mode == ChainValidationMode::EveryBlock
{ {