Expand description
Execution of transaction in ZKsync Era
Structs§
- Async
Catchup Task - A runnable task that blocks until the provided RocksDB cache instance is caught up with Postgres.
- Batch
Diff - DB difference introduced by one batch.
- InMemory
Storage - In-memory storage.
- Postgres
Storage ReadStorage
implementation backed by the Postgres database.- Postgres
Storage Caches - Caches used during VM execution.
- Postgres
Storage Caches Task - An asynchronous task that updates the VM storage values cache.
- Rocksdb
Cell - A lazily initialized handle to RocksDB cache returned from
AsyncCatchupTask::new()
. - Rocksdb
Storage ReadStorage
implementation backed by RocksDB.- Rocksdb
Storage Builder - Builder of
RocksdbStorage
. The storage data is inaccessible until the storage isSelf::synchronize()
d with Postgres. - Rocksdb
Storage Options - Options for
RocksdbStorage
. - Rocksdb
With Memory - A RocksDB cache instance with in-memory DB diffs that gives access to DB state at batches
N
toN + K
, whereK
is the number of diffs. - Sequential
Cache - A generic cache structure for storing key-value pairs in sequential order. It allows for non-unique keys and supports efficient retrieval of values based on a key threshold. The cache maintains a specified maximum capacity, removing the oldest entries as new ones are added.
- Shadow
Storage ReadStorage
implementation backed by 2 different backends: source_storage – backend that will return values for function calls and be the source of truth to_check_storage – secondary storage, which will verify it’s own return values against source_storage Note that if to_check_storage value is different than source value, execution continues and metrics/ logs are emitted.- Storage
View StorageView
is a buffer forStorageLog
s between storage and transaction execution code. In order to commit transactions logs should be submitted to the underlying storage after a transaction is executed.- Storage
View Cache StorageViewCache
is a struct for caching storage reads andcontains_key()
checks.- Storage
View Metrics - Metrics for
StorageView
. - Witness
Storage ReadStorage
implementation backed by binary serialized [WitnessHashBlockState
]. Note thatload_factory_deps
is not used. FactoryDeps data is used straight inside witness generator, loaded with the blob.
Enums§
- PgOr
Rocksdb Storage - A
ReadStorage
implementation that uses eitherPostgresStorage
orRocksdbStorage
underneath. - State
Keeper Column Family - RocksDB column families used by the state keeper.
Constants§
- IN_
MEMORY_ STORAGE_ DEFAULT_ NETWORK_ ID - Network ID we use by default for in memory storage.
Traits§
- Read
Storage - Functionality to read from the VM storage.
- Read
Storage Factory - Factory that can produce a
ReadStorage
implementation on demand. - Write
Storage - Functionality to write to the VM storage in a batch.
Type Aliases§
- Storage
Ptr - Smart pointer to
WriteStorage
.