getdata: show progress every thousand blocks

This commit is contained in:
stoffu
2022-12-23 10:45:13 +09:00
parent 0038f51bb1
commit da817cab7b
+1
View File
@@ -58,6 +58,7 @@ class GetData():
assert start_height < end_height
print('var chartData_%d = [' % height_window_index)
for i in range(start_height, end_height):
if i > start_height and i % 1000 == 0: print("processed height:", i, file=sys.stderr)
while True:
try:
res_blk = daemon.getblock(i)