state clone

This commit is contained in:
debris 2016-01-11 14:47:50 +01:00
parent 4353518be1
commit 12f01d9905

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)]
mod tests {