ethereumjs-monorepo

@ethereumjs/statemanager


@ethereumjs/statemanager / MerkleStateManagerOpts

Interface: MerkleStateManagerOpts

Defined in: types.ts:33

Options for constructing a StateManager.

Extends

Properties

caches?

optional caches: Caches

Defined in: types.ts:65

Options to enable and configure the use of a cache account, code and storage This can be useful for speeding up reads, especially when the trie is large. The cache is only used for reading from the trie and is not used for writing to the trie.

Default: false


common?

optional common: Common

Defined in: types.ts:15

The common to use

Inherited from

BaseStateManagerOpts.common


prefixCodeHashes?

optional prefixCodeHashes: boolean

Defined in: types.ts:44

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.


prefixStorageTrieKeys?

optional prefixStorageTrieKeys: boolean

Defined in: types.ts:56

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)


trie?

optional trie: MerklePatriciaTrie

Defined in: types.ts:37

A MerklePatriciaTrie instance