hirosystems / stacks-subnets

Stacks Subnets: a layer-2 scaling solution for Stacks, intended for high-throughput, low-latency workloads
http://docs.hiro.so
GNU General Public License v3.0
51 stars 13 forks source link

Replacing the MARF: Use state delta + state hash commits as fork-DB backend #6

Open kantai opened 2 years ago

kantai commented 2 years ago

Since hyperchains will largely be free of forks, there is less of a need to use the MARF in its current form. The purpose of the MARF is to allow nodes to quickly validate the value of a particular key in ANY fork. Replacing the MARF with a flat key value store will lead to speedups.

We will replace the MARF with the following:

When a new block is created, this is what will happen:

This change will affect the speed of operations in the SortitionDB and ClarityDB, both of which use the MARF.

saralab commented 2 years ago
pavitthrap commented 1 year ago

Work so far is on the branch feat/replace-marf