state clone
This commit is contained in:
parent
4353518be1
commit
12f01d9905
@ -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 {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user