sp-consensus: remove unused error variants (#13495)

This commit is contained in:
André Silva
2023-03-01 13:04:57 +00:00
committed by GitHub
parent 6458a6386d
commit b29584d93a
4 changed files with 15 additions and 65 deletions
+2 -1
View File
@@ -331,7 +331,8 @@ where
.select_chain
.best_chain()
.await
.map_err(|e| format!("Fetch best chain failed via select chain: {}", e))?;
.map_err(|e| format!("Fetch best chain failed via select chain: {}", e))
.map_err(ConsensusError::ChainLookup)?;
let best_hash = best_header.hash();
let parent_hash = *block.header.parent_hash();