Skip to content

Commit

Permalink
Derive Clone implementation for StorageTransactionCache (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekovalev authored Sep 13, 2023
1 parent 93aa762 commit 87bb086
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions primitives/state-machine/src/overlayed_changes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ impl<Transaction, H: Hasher> StorageChanges<Transaction, H> {
/// Storage transactions are calculated as part of the `storage_root`.
/// These transactions can be reused for importing the block into the
/// storage. So, we cache them to not require a recomputation of those transactions.
#[derive(Clone)]
pub struct StorageTransactionCache<Transaction, H: Hasher> {
/// Contains the changes for the main and the child storages as one transaction.
pub(crate) transaction: Option<Transaction>,
Expand Down

0 comments on commit 87bb086

Please sign in to comment.