Skip to content

Commit

Permalink
Derive Clone implementation for StorageTransactionCache (gear-tech/su…
Browse files Browse the repository at this point in the history
  • Loading branch information
ukint-vs committed Mar 16, 2024
1 parent 6dff62b commit 1c022f9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ impl<H: Hasher> Default for StorageChanges<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)]
struct StorageTransactionCache<H: Hasher> {
/// Contains the changes for the main and the child storages as one transaction.
transaction: BackendTransaction<H>,
Expand Down

0 comments on commit 1c022f9

Please sign in to comment.