Report only every 1024'th getBlock
This commit is contained in:
parent
7d6330b938
commit
0bbecc5092
|
@ -75,7 +75,10 @@ method getBlock*(
|
||||||
## Save a copy to the cache if present in the database but not in the cache
|
## Save a copy to the cache if present in the database but not in the cache
|
||||||
##
|
##
|
||||||
|
|
||||||
notice " == getBlock"
|
var counter {.global.} = 0
|
||||||
|
inc(counter)
|
||||||
|
if counter mod 1024 == 0:
|
||||||
|
echo counter
|
||||||
|
|
||||||
if not self.cache.isNil:
|
if not self.cache.isNil:
|
||||||
trace "Getting block from cache or database", cid
|
trace "Getting block from cache or database", cid
|
||||||
|
|
Loading…
Reference in New Issue