@ethereumjs/binarytree / BinaryTreeOpts
Defined in: types.ts:6
Options for createBinaryTree and BinaryTree.
cacheSize:
number
Defined in: types.ts:27
LRU cache for tree nodes to allow for faster node retrieval.
Default: 0 (deactivated)
db:
DB<string,string|Uint8Array<ArrayBufferLike>>
Defined in: types.ts:10
A database instance.
hashFunction: (
msg) =>Uint8Array
Defined in: types.ts:32
Hash function used for hashing the tree nodes.
Uint8Array
Uint8Array
optionalroot?:Uint8Array<ArrayBufferLike>
Defined in: types.ts:15
A Uint8Array for the root of a previously stored tree
useRootPersistence:
boolean
Defined in: types.ts:20
Store the root inside the database after every write operation