From d7c377dea61c6108987b2bba1cf9219116a0c87c Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Mon, 28 Mar 2016 10:12:15 +0200 Subject: [PATCH] Fix build. --- ethcore/src/block.rs | 2 +- ethcore/src/state.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ethcore/src/block.rs b/ethcore/src/block.rs index 80f68a78a..6d5b9f25f 100644 --- a/ethcore/src/block.rs +++ b/ethcore/src/block.rs @@ -457,7 +457,7 @@ impl IsBlock for SealedBlock { pub fn enact(header: &Header, transactions: &[SignedTransaction], uncles: &[Header], engine: &Engine, tracing: bool, db: Box, parent: &Header, last_hashes: LastHashes) -> Result { { if ::log::max_log_level() >= ::log::LogLevel::Trace { - let s = State::from_existing(db.spawn(), parent.state_root().clone(), engine.account_start_nonce()); + let s = State::from_existing(db.boxed_clone(), parent.state_root().clone(), engine.account_start_nonce()); trace!("enact(): root={}, author={}, author_balance={}\n", s.root(), header.author(), s.balance(&header.author())); } } diff --git a/ethcore/src/state.rs b/ethcore/src/state.rs index ad0cf4152..c0a676a7d 100644 --- a/ethcore/src/state.rs +++ b/ethcore/src/state.rs @@ -342,7 +342,7 @@ impl fmt::Debug for State { impl Clone for State { fn clone(&self) -> State { State { - db: self.db.spawn(), + db: self.db.boxed_clone(), root: self.root.clone(), cache: RefCell::new(self.cache.borrow().clone()), snapshots: RefCell::new(self.snapshots.borrow().clone()),