add some info to persist tool

This commit is contained in:
andri lim 2019-03-11 20:21:09 +07:00
parent 56f81ae821
commit 0c01735c4b
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 3 additions and 2 deletions

View File

@ -62,12 +62,13 @@ proc main() =
var numBlocks = 0
var counter = 0
while true:
info "REQUEST HEADER", blockNumber=blockNumber
while true:
var thisBlock = requestBlock(blockNumber)
headers.add thisBlock.header
bodies.add thisBlock.body
info "REQUEST HEADER", blockNumber=blockNumber, txs=thisBlock.body.transactions.len
inc numBlocks
blockNumber += one