Skip to content

Refactor the file into multiple layers: #6

Description

@jakub-wojciechowski
  1. Low level readings (stateDbReader): Db connection, prefixes, transformations (bufferHex, bufferToInt, buffer64, buffer256, sha3, atStruct, atMap, blockNumberByHash, blockHash, _blockHeader..... getNode)

  2. Trie traversals (stateDbFinder): (_sfind, binarySearchCreation, findNextBlock, _errorCheck)

  3. Data extractors (dbExtractor): (_getRange, getRange, getRangeMulti)

  4. Query splitter: logic when we try to split the data range into chunks and execute them in parallel not to waste time waiting for IO db operations (btw. is there a n value that brings the bests results?)

  5. High level api to provide one function per one method used (simple, hash, lastPath) - taken from /test/samples.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions