Skip to content

createMemoryDb

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

Internal

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>

Defined in

packages/utils/src/createMemoryDb.js:22