mirror of
https://github.com/serai-dex/serai.git
synced 2025-04-22 22:18:15 +00:00
Remove error case which shouldn't be an error
This commit is contained in:
parent
f4d622a34c
commit
de0e6724bf
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,9 @@ where
|
|||
mut block: BlockImportParams<T::Block, Self::Transaction>,
|
||||
new_cache: HashMap<CacheKeyId, Vec<u8>>,
|
||||
) -> Result<ImportResult, Self::Error> {
|
||||
if self.client.status(BlockId::Hash(block.hash)).unwrap() == BlockStatus::InChain {
|
||||
return Ok(ImportResult::AlreadyInChain);
|
||||
}
|
||||
self.check(&mut block).await?;
|
||||
self.client.import_block(block, new_cache).await.map_err(Into::into)
|
||||
|
||||
|
|
Loading…
Reference in a new issue