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

This commit is contained in:
André Silva authored and GitHub committed 2023-03-01 13:04:57 +00:00
1 parent 6458a6386d
commit b29584d93a
4 files changed
+15 -65

No files matched your search

+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();