From 12f01d99055cd054c9804584303b69c394450333 Mon Sep 17 00:00:00 2001 From: debris Date: Mon, 11 Jan 2016 14:47:50 +0100 Subject: [PATCH] state clone --- src/state.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/state.rs b/src/state.rs index 03978fc4e..fd54db318 100644 --- a/src/state.rs +++ b/src/state.rs @@ -221,6 +221,12 @@ impl State { } } +impl Clone for State { + fn clone(&self) -> Self { + State::from_existing(self.db.clone(), self.root.clone(), self.account_start_nonce.clone()) + } +} + #[cfg(test)] mod tests {