Skip to content
Snippets Groups Projects

Resolve "Récupération des blocs"

Merged JAUJAY Augustin requested to merge 186-recuperation-des-blocs into dev
1 file
+ 1
7
Compare changes
  • Side-by-side
  • Inline
+ 1
7
@@ -45,13 +45,7 @@ defmodule BDD do
_ -> Logger.info('Filling DB : Failing when getting current block')
end
# Getting current block in local database
lastLocalBlock = case :dets.first(:block) do
:"$end_of_table" -> 0
n -> n
end
lastLocalBlock..50 # currentBlock["number"]
:dets.info(:block)[:size]..50 # currentBlock["number"] # TODO : Fetch all the blocks
|> Enum.chunk_every(5000)
|> Enum.map(fn chk ->
# Putting the new blocks in the local database
Loading