Skip to content
Snippets Groups Projects

Mi smooth sync

Merged Marcin requested to merge mi_smooth_sync into develop
  1. Dec 11, 2020
    • Marcin's avatar
      54c62bf6
    • Marcin's avatar
      blocks provider takes blocks independet for sql processing · 0273877f
      Marcin authored
      Added object BlocksProvider which use a few threads to ask the node
      for batch of blocks. The threads do not wait to sql processing of
      already taken blocks, but immediatly asks for the next batches.
      
      config parameter max_batch used to set number of blocks taken in one http request
      config parameter max_worker used to set number of thread used to get blocks
      
      reporting changes:
      1) times are reported after minium 1000 blocks were processe
      2) timer statistics for block processing measure now times of whole
      	loops - together with taking blocks and vops
      0273877f
Loading