mostly purge x! from ethcore

This commit is contained in:
Robert Habermeier
2016-05-31 16:59:01 +02:00
parent 3788b3a149
commit ff7c755930
16 changed files with 298 additions and 298 deletions

View File

@@ -655,10 +655,10 @@ impl<V> BlockChainClient for Client<V> where V: Verifier {
{
let header = BlockView::new(&bytes).header_view();
if self.chain.is_known(&header.sha3()) {
return Err(x!(ImportError::AlreadyInChain));
return Err(ImportError::AlreadyInChain.into());
}
if self.block_status(BlockID::Hash(header.parent_hash())) == BlockStatus::Unknown {
return Err(x!(BlockError::UnknownParent(header.parent_hash())));
return Err(BlockError::UnknownParent(header.parent_hash()).into());
}
}
self.block_queue.import_block(bytes)