ethereumjs-monorepo icon indicating copy to clipboard operation
ethereumjs-monorepo copied to clipboard

Flatten DB

Open am1r021 opened this issue 2 years ago • 4 comments

The aim of this change is to implement a flat database design for keeping state data in. This work will be integrated with the snap sync implementation for keeping snapshots of the latest 128 states. This work picks up where #780 left off. The goal is to first implement the StackTrie structure, then to implement the Snapshot and database wrapper necessary for data persistence.

am1r021 avatar Aug 22 '23 20:08 am1r021

Side note: VM is definitely the wrong package, that's clear I guess, assuming a bit this is just for testing? Just to point out, so that this doesn't "settle at the wrong place" 😋, I know though that this is very very early.

holgerd77 avatar Aug 24 '23 10:08 holgerd77

Codecov Report

Attention: Patch coverage is 79.21348% with 74 lines in your changes are missing coverage. Please review.

Project coverage is 87.39%. Comparing base (b8f5b6d) to head (1e6ca80).

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block 88.34% <ø> (ø)
blockchain 91.61% <ø> (ø)
client 84.62% <100.00%> (-0.11%) :arrow_down:
common 98.25% <ø> (ø)
devp2p 82.12% <ø> (ø)
ethash ∅ <ø> (∅)
evm 74.33% <ø> (ø)
genesis 99.98% <ø> (ø)
rlp ?
statemanager ?
trie 89.83% <95.70%> (+0.59%) :arrow_up:
tx 95.45% <ø> (ø)
util 84.82% <27.90%> (-4.32%) :arrow_down:
vm 80.17% <66.66%> (-0.04%) :arrow_down:
wallet 88.35% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

codecov[bot] avatar Sep 28 '23 01:09 codecov[bot]

Cool work! 🤩

Is there any way this can be practically tested?

holgerd77 avatar Dec 06 '23 09:12 holgerd77

Cool work! 🤩

Is there any way this can be practically tested?

I will update with some details on this as I am currently still working on debugging and integrating it with the vm blockchain and state tests with the goal of making it possible to use for e.g. block execution 🙂

am1r021 avatar Dec 09 '23 02:12 am1r021