add some info to persist tool
This commit is contained in:
parent
56f81ae821
commit
0c01735c4b
|
@ -62,12 +62,13 @@ proc main() =
|
||||||
var numBlocks = 0
|
var numBlocks = 0
|
||||||
var counter = 0
|
var counter = 0
|
||||||
|
|
||||||
while true:
|
while true:
|
||||||
info "REQUEST HEADER", blockNumber=blockNumber
|
|
||||||
var thisBlock = requestBlock(blockNumber)
|
var thisBlock = requestBlock(blockNumber)
|
||||||
|
|
||||||
headers.add thisBlock.header
|
headers.add thisBlock.header
|
||||||
bodies.add thisBlock.body
|
bodies.add thisBlock.body
|
||||||
|
info "REQUEST HEADER", blockNumber=blockNumber, txs=thisBlock.body.transactions.len
|
||||||
|
|
||||||
inc numBlocks
|
inc numBlocks
|
||||||
blockNumber += one
|
blockNumber += one
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue