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 {