Use storage transaction when running with proof recorder (#10581)

This will enable parachains to re-import a block without re-executing it.
This commit is contained in:
Bastian Köcher authored and GitHub committed 2022-01-04 20:48:43 +01:00
1 parent b9bc515506
commit e444877d4b
2 files changed
+4 -2

No files matched your search

@@ -40,7 +40,7 @@ pub trait Backend<H: Hasher>: sp_std::fmt::Debug {
type Transaction: Consolidate + Default + Send;
/// Type of trie backend storage.
type TrieBackendStorage: TrieBackendStorage<H>;
type TrieBackendStorage: TrieBackendStorage<H, Overlay = Self::Transaction>;
/// Get keyed storage or None if there is nothing associated.
fn storage(&self, key: &[u8]) -> Result<Option<StorageValue>, Self::Error>;