From f611b6c7b6b8d559abc1093802d85af6a2cbe641 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 976f0ddc8..349f8aac0 100644 --- a/src/state.rs +++ b/src/state.rs @@ -225,6 +225,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 {