@ethereumjs/statemanager / DefaultStateManagerOpts
Options for constructing a StateManager.
• Optional accountCacheOpts: CacheOptions
• Optional codeCacheOpts: CacheOptions
• Optional common: Common
The common to use
• 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.
• 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)
• Optional storageCacheOpts: CacheOptions
• Optional trie: Trie
A Trie instance