state clone

This commit is contained in:
debris 2016-01-11 14:47:50 +01:00
parent 22859a04b6
commit f611b6c7b6

View File

@ -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 {