Skip to content

createMemoryDb

Internal

createMemoryDb(initialDb?): MemoryDb<Uint8Array, Uint8Array>

A simple ethereumjs DB instance that uses an in memory Map as it’s backend Pass in an initial DB optionally to prepoulate the DB.

Parameters

initialDb?: Map<Uint8Array, Uint8Array>

Returns

MemoryDb<Uint8Array, Uint8Array>

Throws

Source

packages/utils/src/createMemoryDb.js:22