diff --git a/src/block.rs b/src/block.rs index 3c42e4e27..6ed97f6a7 100644 --- a/src/block.rs +++ b/src/block.rs @@ -123,7 +123,7 @@ impl<'engine> OpenBlock<'engine> { } } - /// Turn this into a `ClosedBlock`. A BlockChain must be provided in order to figure ou the uncles. + /// Turn this into a `ClosedBlock`. A BlockChain must be provided in order to figure out the uncles. pub fn close(self, _uncles: Vec
) -> ClosedBlock<'engine> { unimplemented!(); } } @@ -155,11 +155,10 @@ impl IsBlock for SealedBlock { #[test] fn open_block() { - use super::*; use spec::*; let engine = Spec::new_test().to_engine().unwrap(); let genesis_header = engine.spec().genesis_header(); let mut db = OverlayDB::new_temp(); engine.spec().ensure_db_good(&mut db); - let b = OpenBlock::new(engine.deref(), db, &genesis_header, vec![genesis_header.hash()]); + let _ = OpenBlock::new(engine.deref(), db, &genesis_header, vec![genesis_header.hash()]); } \ No newline at end of file diff --git a/src/ethereum/ethash.rs b/src/ethereum/ethash.rs index 13b1f6a46..a238330ea 100644 --- a/src/ethereum/ethash.rs +++ b/src/ethereum/ethash.rs @@ -31,16 +31,10 @@ impl Engine for Ethash { #[test] fn playpen() { use super::*; - use state::*; let engine = new_morden().to_engine().unwrap(); let genesis_header = engine.spec().genesis_header(); let mut db = OverlayDB::new_temp(); engine.spec().ensure_db_good(&mut db); - assert!(SecTrieDB::new(&db, &genesis_header.state_root).contains(&address_from_hex("102e61f5d8f9bc71d0ad4a084df4e65e05ce0e1c"))); - { - let s = State::from_existing(db.clone(), genesis_header.state_root.clone(), engine.account_start_nonce()); - assert_eq!(s.balance(&address_from_hex("0000000000000000000000000000000000000001")), U256::from(1u64)); - } - let b = OpenBlock::new(engine.deref(), db, &genesis_header, vec![genesis_header.hash()]); + let _ = OpenBlock::new(engine.deref(), db, &genesis_header, vec![genesis_header.hash()]); // let c = b.close(); } \ No newline at end of file diff --git a/src/ethereum/mod.rs b/src/ethereum/mod.rs index e743c6d09..ed1950d64 100644 --- a/src/ethereum/mod.rs +++ b/src/ethereum/mod.rs @@ -56,7 +56,7 @@ mod tests { let genesis = morden.genesis_block(); assert_eq!(BlockView::new(&genesis).header_view().sha3(), H256::from_str("0cd786a2425d16f152c658316c423e6ce1181e15c3295826d7c9904cba9ce303").unwrap()); - morden.to_engine(); + let _ = morden.to_engine(); } #[test] @@ -67,6 +67,6 @@ mod tests { let genesis = frontier.genesis_block(); assert_eq!(BlockView::new(&genesis).header_view().sha3(), H256::from_str("d4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3").unwrap()); - frontier.to_engine(); + let _ = frontier.to_engine(); } } \ No newline at end of file