This repository has been archived by the owner on Jun 10, 2019. It is now read-only.
Extract tx-log ingestion logic out of block-store
#44
Labels
block-store
#44
Is your feature request related to a problem? Please describe.
Currently
block-store.js
handles way more than it should. It ingests transactions from thetx-log
, triggers theleveldb-sum-tree
logic, and generates history proofs. This is too much.Describe the solution you'd like
The first step in cleaning up the
block-manager
is extracting thetx-log
ingestion logic.tx-log
ingestion should be a separate file which one can call, pass in adb
and then wait util thatdb
is populated with transactions from a particular block. This is a very clean separation of concerns and should be easy to pull out.Relevant code: https://github.com/plasma-group/plasma-chain-operator/blob/master/src/block-manager/block-store.js#L365-L452
The text was updated successfully, but these errors were encountered: