alexdovzhanyn / elixium_core

A privacy-preserving decentralized application network
https://www.elixiumnetwork.org/
281 stars 37 forks source link

Refactor multi-process store code to use oracle #45

Closed alexdovzhanyn closed 6 years ago

alexdovzhanyn commented 6 years ago

Since leveldb only allows one process at a time to read/write to the store, we make use of an oracle process that will handle these requests.

An oracle process is started for a given store, and it maintains a lock on that store through its lifetime. Any process that wishes to communicate with a the store will send a message to the oracle, which will process the request and return the output of the store