ethereumjs-monorepo

@ethereumjs/statemanager / DefaultStateManagerOpts

Interface: DefaultStateManagerOpts

Options for constructing a StateManager.

Table of contents

Properties

Properties

accountCacheOpts

Optional accountCacheOpts: CacheOptions

Defined in

stateManager.ts:134


codeCacheOpts

Optional codeCacheOpts: CacheOptions

Defined in

stateManager.ts:138


common

Optional common: Common

The common to use

Defined in

stateManager.ts:143


prefixCodeHashes

Optional prefixCodeHashes: boolean

Option to prefix codehashes in the database. This defaults to true. If this is disabled, note that it is possible to corrupt the trie, by deploying code which code is equal to the preimage of a trie-node. E.g. by putting the code 0x80 into the empty trie, will lead to a corrupted trie.

Defined in

stateManager.ts:120


prefixStorageTrieKeys

Optional prefixStorageTrieKeys: boolean

Option to prefix the keys for the storage tries with the first 7 bytes from the associated account address. Activating this option gives a noticeable performance boost for storage DB reads when operating on larger tries.

Note: Activating/deactivating this option causes continued state reads to be incompatible with existing databases.

Default: false (for backwards compatibility reasons)

Defined in

stateManager.ts:132


storageCacheOpts

Optional storageCacheOpts: CacheOptions

Defined in

stateManager.ts:136


trie

Optional trie: Trie

A Trie instance

Defined in

stateManager.ts:113