Merge pull request #74 from gavofyork/state_clone

state clone
This commit is contained in:
Gav Wood 2016-01-11 15:27:48 +01:00
commit 5aa6e6f5e6

View File

@ -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)] #[cfg(test)]
mod tests { mod tests {