diff --git a/chain/src/chain.rs b/chain/src/chain.rs index e4f638ccf4..2255b0bbd3 100644 --- a/chain/src/chain.rs +++ b/chain/src/chain.rs @@ -2360,15 +2360,10 @@ impl BlockChain { if result.is_ok() { Ok(Some(G_TEST_DAG_FORK_HEIGHT)) } else { - let result = self.dag.get_dag_state(self.current_header().id()); - if result.is_ok() { - Ok(Some(G_TEST_DAG_FORK_HEIGHT)) - } else { - Ok(self - .statedb - .get_on_chain_config::()? - .map(|c| c.effective_height)) - } + Ok(self + .statedb + .get_on_chain_config::()? + .map(|c| c.effective_height)) } } else { Ok(self